diff options
author | Carl Dong <contact@carldong.me> | 2020-10-15 13:07:25 -0400 |
---|---|---|
committer | Carl Dong <contact@carldong.me> | 2021-03-08 15:54:31 -0500 |
commit | a67983cd6d8e61565da4e03f3ba401d0148fe195 (patch) | |
tree | b6d6c1d0e4e26afcf9746d3f5a87596e41bbf519 | |
parent | 272d993e759e7fcfe883b84e9a2a3be3c75177ec (diff) |
net_processing: Add review-only assertion to PeerManager
-rw-r--r-- | src/net_processing.cpp | 1 |
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)); |