Move mempool nullptr Assert out of LoadChainstate

This commit is contained in:
Carl Dong committed 2021-12-06 15:56:55 -05:00
1 parent 9162a4f93e
commit 8715658983
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -1421,7 +1421,7 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info)
const int64_t load_block_index_start_time = GetTimeMillis();
auto rv = LoadChainstate(fReset,
chainman,
node.mempool.get(),
Assert(node.mempool.get()),
fPruneMode,
chainparams,
fReindexChainState,
+1 -1
View File
@@ -31,7 +31,7 @@ std::optional<ChainstateLoadingError> LoadChainstate(bool fReset,
do {
try {
LOCK(cs_main);
chainman.InitializeChainstate(Assert(mempool));
chainman.InitializeChainstate(mempool);
chainman.m_total_coinstip_cache = nCoinCacheUsage;
chainman.m_total_coinsdb_cache = nCoinDBCache;