[refactor] move invalid package processing to TxDownload

This commit is contained in:
glozow
2024-04-16 16:35:07 +01:00
parent c4ce0c1218
commit 257568eab5
4 changed files with 14 additions and 1 deletions

View File

@@ -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;