mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-26 07:26:15 +01:00
[refactor] move invalid package processing to TxDownload
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user