[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 committed 2024-10-24 21:23:56 -04:00
1 parent 798cc8f5aa
commit 6797bc42a7
1 file changed
+1 -1
+1 -1
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);
}