mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
[refactor] move invalid package processing to TxDownload
This commit is contained in:
parent
c4ce0c1218
commit
257568eab5
4 changed files with 14 additions and 1 deletions
|
|
@ -3029,7 +3029,7 @@ void PeerManagerImpl::ProcessPackageResult(const node::PackageToValidate& packag
|
|||
const auto& senders = package_to_validate.m_senders;
|
||||
|
||||
if (package_result.m_state.IsInvalid()) {
|
||||
RecentRejectsReconsiderableFilter().insert(GetPackageHash(package));
|
||||
m_txdownloadman.MempoolRejectedPackage(package);
|
||||
}
|
||||
// We currently only expect to process 1-parent-1-child packages. Remove if this changes.
|
||||
if (!Assume(package.size() == 2)) return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue