aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
authorCarl Dong <contact@carldong.me>2020-10-06 17:20:26 -0400
committerCarl Dong <contact@carldong.me>2021-06-10 15:05:24 -0400
commit6c3b5dc0c13c3ac8c6e86298f924abe99d8d6bd1 (patch)
tree756ec8e7204730cbfe20bc3d5934bb1951a1e1b5 /src/init.cpp
parent3e82abb8dd7e21ec918966105648be7ae077fd8c (diff)
scripted-diff: tree-wide: Remove all review-only assertions
-BEGIN VERIFY SCRIPT- find_regex='((assert|CHECK_NONFATAL)\(std::addressof|TODO: REVIEW-ONLY)' \ && git grep -l -E "$find_regex" -- . \ | xargs sed -i -E "/${find_regex}/d" -END VERIFY SCRIPT-
Diffstat (limited to 'src/init.cpp')
-rw-r--r--src/init.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/init.cpp b/src/init.cpp
index 904154cc06..dcc2a0ebcc 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -1384,7 +1384,6 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info)
// If the loaded chain has a wrong genesis, bail out immediately
// (we're likely using a testnet datadir, or the other way around).
- assert(std::addressof(g_chainman.m_blockman) == std::addressof(chainman.m_blockman));
if (!chainman.BlockIndex().empty() &&
!chainman.m_blockman.LookupBlockIndex(chainparams.GetConsensus().hashGenesisBlock)) {
return InitError(_("Incorrect or no genesis block found. Wrong datadir for network?"));
@@ -1612,7 +1611,6 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info)
// Either install a handler to notify us when genesis activates, or set fHaveGenesis directly.
// No locking, as this happens before any background thread is started.
boost::signals2::connection block_notify_genesis_wait_connection;
- assert(std::addressof(::ChainActive()) == std::addressof(chainman.ActiveChain()));
if (chainman.ActiveChain().Tip() == nullptr) {
block_notify_genesis_wait_connection = uiInterface.NotifyBlockTip_connect(std::bind(BlockNotifyGenesisWait, std::placeholders::_2));
} else {