Skip to content

Commit

Permalink
Add note where AddToCompactExtraTransactions would need additional bo…
Browse files Browse the repository at this point in the history
…ok-keeping in package relay future
  • Loading branch information
instagibbs committed Jan 9, 2024
1 parent 8ad94fb commit 6bf242c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/net_processing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 6bf242c

Please sign in to comment.