mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
added asserts to check m_addr_known when it's used
This commit is contained in:
parent
090b75c14b
commit
a552e8477c
2 changed files with 3 additions and 0 deletions
|
|
@ -3561,6 +3561,7 @@ bool PeerLogicValidation::SendMessages(CNode* pto)
|
|||
pto->nNextAddrSend = PoissonNextSend(nNow, AVG_ADDRESS_BROADCAST_INTERVAL);
|
||||
std::vector<CAddress> vAddr;
|
||||
vAddr.reserve(pto->vAddrToSend.size());
|
||||
assert(pto->m_addr_known);
|
||||
for (const CAddress& addr : pto->vAddrToSend)
|
||||
{
|
||||
if (!pto->m_addr_known->contains(addr.GetKey()))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue