aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Dong <contact@carldong.me>2020-10-15 13:07:25 -0400
committerCarl Dong <contact@carldong.me>2021-03-08 15:54:31 -0500
commita67983cd6d8e61565da4e03f3ba401d0148fe195 (patch)
treeb6d6c1d0e4e26afcf9746d3f5a87596e41bbf519 /src
parent272d993e759e7fcfe883b84e9a2a3be3c75177ec (diff)
net_processing: Add review-only assertion to PeerManager
Diffstat (limited to 'src')
-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 f7fa67bb75..d1f0d0f5ef 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));