Skip to content

Commit

Permalink
net_processing: Add review-only assertion to PeerManager
Browse files Browse the repository at this point in the history
  • Loading branch information
dongcarl committed Mar 8, 2021
1 parent 272d993 commit a67983c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/net_processing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Expand Down

0 comments on commit a67983c

Please sign in to comment.