aboutsummaryrefslogtreecommitdiff
path: root/src/net_processing.cpp
diff options
context:
space:
mode:
authorUser <naumenko.gs@gmail.com>2019-10-25 16:28:14 -0400
committerUser <naumenko.gs@gmail.com>2019-10-25 16:28:14 -0400
commita552e8477c5bcd22a5457f4f73a2fd6db8acd2c2 (patch)
treecf5979d0c6e4f63086608a664d646f364cfd2736 /src/net_processing.cpp
parent090b75c14be6b9ba2efe38a17d141c6e6af575cb (diff)
added asserts to check m_addr_known when it's used
Diffstat (limited to 'src/net_processing.cpp')
-rw-r--r--src/net_processing.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/net_processing.cpp b/src/net_processing.cpp
index 188c3d777e..c1743c2e32 100644
--- a/src/net_processing.cpp
+++ b/src/net_processing.cpp
@@ -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()))