[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:
glozow 2024-10-15 17:57:31 +01:00
parent 798cc8f5aa
commit 6797bc42a7

View file

@ -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); AddToCompactExtraTransactions(ptx);
} }