mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-09-15 15:58:11 +02:00
net_processing: bump last_inv_sequence for bip35 messages explicitly
This avoids relying on the bump that occurs through the normal INV process, which is confusing.
This commit is contained in:
@@ -6109,6 +6109,10 @@ bool PeerManagerImpl::SendMessages(CNode& node)
|
||||
// Respond to BIP35 mempool requests
|
||||
if (fSendTrickle && tx_relay->m_send_mempool) {
|
||||
auto vtxinfo = m_mempool.infoAll();
|
||||
|
||||
// Ensure we'll respond to GETDATA requests for anything we're about to announce
|
||||
tx_relay->m_last_inv_sequence = WITH_LOCK(m_mempool.cs, return m_mempool.GetSequence());
|
||||
|
||||
tx_relay->m_send_mempool = false;
|
||||
const CFeeRate filterrate{tx_relay->m_fee_filter_received.load()};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user