From 6797bc42a762f431a986852fa74b1775aea8ba38 Mon Sep 17 00:00:00 2001 From: glozow Date: Tue, 15 Oct 2024 17:57:31 +0100 Subject: [PATCH] [p2p] restrict RecursiveDynamicUsage of orphans added to vExtraTxnForCompact There does not appear to be any reason why orphan transactions should be given special treatment. --- src/net_processing.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net_processing.cpp b/src/net_processing.cpp index 1ffeb3a3ce..db31c3e45a 100644 --- a/src/net_processing.cpp +++ b/src/net_processing.cpp @@ -3089,7 +3089,7 @@ std::optional PeerManagerImpl::ProcessInvali } } - if (m_orphanage.AddTx(ptx, nodeid)) { + if (m_orphanage.AddTx(ptx, nodeid) && RecursiveDynamicUsage(*ptx) < 100000) { AddToCompactExtraTransactions(ptx); }