mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-10 03:47:29 -03:00
[p2p] restrict RecursiveDynamicUsage of orphans added to vExtraTxnForCompact
There does not appear to be any reason why orphan transactions should be given special treatment.
This commit is contained in:
parent
798cc8f5aa
commit
6797bc42a7
1 changed files with 1 additions and 1 deletions
|
@ -3089,7 +3089,7 @@ std::optional<PeerManagerImpl::PackageToValidate> PeerManagerImpl::ProcessInvali
|
|||
}
|
||||
}
|
||||
|
||||
if (m_orphanage.AddTx(ptx, nodeid)) {
|
||||
if (m_orphanage.AddTx(ptx, nodeid) && RecursiveDynamicUsage(*ptx) < 100000) {
|
||||
AddToCompactExtraTransactions(ptx);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue