diff --git a/src/net_processing.cpp b/src/net_processing.cpp index 10673414952a59..0d1f9d9b6f5241 100644 --- a/src/net_processing.cpp +++ b/src/net_processing.cpp @@ -1724,6 +1724,8 @@ bool PeerManagerImpl::GetNodeStateStats(NodeId nodeid, CNodeStateStats& stats) c void PeerManagerImpl::AddToCompactExtraTransactions(const CTransactionRef& tx) { + // Note: If package evaluation is exposed, we need to make sure the same + // tx isn't added multiple times in one invocation. if (m_opts.max_extra_txs <= 0) return; if (!vExtraTxnForCompact.size())