mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-22 15:04:44 +01:00
p2p: Limit m_block_inv_mutex
This commit is contained in:
parent
8f80092d78
commit
fac96d0265
1 changed files with 2 additions and 2 deletions
|
@ -4449,8 +4449,9 @@ bool PeerManagerImpl::SendMessages(CNode* pto)
|
|||
}
|
||||
}
|
||||
peer->m_blocks_for_inv_relay.clear();
|
||||
}
|
||||
|
||||
if (pto->m_tx_relay != nullptr) {
|
||||
if (pto->m_tx_relay != nullptr) {
|
||||
LOCK(pto->m_tx_relay->cs_tx_inventory);
|
||||
// Check whether periodic sends should happen
|
||||
bool fSendTrickle = pto->HasPermission(PF_NOBAN);
|
||||
|
@ -4578,7 +4579,6 @@ bool PeerManagerImpl::SendMessages(CNode* pto)
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!vInv.empty())
|
||||
m_connman.PushMessage(pto, msgMaker.Make(NetMsgType::INV, vInv));
|
||||
|
|
Loading…
Add table
Reference in a new issue