From a67983cd6d8e61565da4e03f3ba401d0148fe195 Mon Sep 17 00:00:00 2001 From: Carl Dong Date: Thu, 15 Oct 2020 13:07:25 -0400 Subject: [PATCH] net_processing: Add review-only assertion to PeerManager --- src/net_processing.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/net_processing.cpp b/src/net_processing.cpp index f7fa67bb75f..d1f0d0f5efa 100644 --- a/src/net_processing.cpp +++ b/src/net_processing.cpp @@ -1245,6 +1245,7 @@ PeerManagerImpl::PeerManagerImpl(const CChainParams& chainparams, CConnman& conn m_stale_tip_check_time(0), m_ignore_incoming_txs(ignore_incoming_txs) { + assert(std::addressof(g_chainman) == std::addressof(m_chainman)); // Initialize global variables that cannot be constructed at startup. recentRejects.reset(new CRollingBloomFilter(120000, 0.000001));