Skip to content

Commit 6797bc4

Browse files
committed
[p2p] restrict RecursiveDynamicUsage of orphans added to vExtraTxnForCompact
There does not appear to be any reason why orphan transactions should be given special treatment.
1 parent 798cc8f commit 6797bc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/net_processing.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3089,7 +3089,7 @@ std::optional<PeerManagerImpl::PackageToValidate> PeerManagerImpl::ProcessInvali
30893089
}
30903090
}
30913091

3092-
if (m_orphanage.AddTx(ptx, nodeid)) {
3092+
if (m_orphanage.AddTx(ptx, nodeid) && RecursiveDynamicUsage(*ptx) < 100000) {
30933093
AddToCompactExtraTransactions(ptx);
30943094
}
30953095

0 commit comments

Comments
 (0)