[p2p] assign just 1 random announcer in AddChildrenToWorkSet

This commit is contained in:
glozow committed 2025-01-29 18:05:16 -05:00
1 parent 4c1fa6b28c
commit 7426afbe62
5 files changed
+38 -24

No files matched your search

+1 -1
View File
@@ -333,7 +333,7 @@ void TxDownloadManagerImpl::MempoolAcceptedTx(const CTransactionRef& tx)
m_txrequest.ForgetTxHash(tx->GetHash());
m_txrequest.ForgetTxHash(tx->GetWitnessHash());
m_orphanage.AddChildrenToWorkSet(*tx);
m_orphanage.AddChildrenToWorkSet(*tx, m_opts.m_rng);
// If it came from the orphanage, remove it. No-op if the tx is not in txorphanage.
m_orphanage.EraseTx(tx->GetWitnessHash());
}