Skip to content

Commit 29c7362

Browse files
committed
Move mempool nullptr Assert out of LoadChainstate
1 parent 7071282 commit 29c7362

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/init.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1881,7 +1881,7 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info)
18811881
llmq::quorumInstantSendManager,
18821882
llmq::quorumSnapshotManager,
18831883
node.llmq_ctx,
1884-
node.mempool.get(),
1884+
Assert(node.mempool.get()),
18851885
fPruneMode,
18861886
args.GetBoolArg("-addressindex", DEFAULT_ADDRESSINDEX),
18871887
is_governance_enabled,

src/node/chainstate.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ std::optional<ChainstateLoadingError> LoadChainstate(bool fReset,
6969
mnhf_manager.reset();
7070
mnhf_manager = std::make_unique<CMNHFManager>(*evodb);
7171

72-
chainman.InitializeChainstate(Assert(mempool), *evodb, chain_helper, clhandler, isman);
72+
chainman.InitializeChainstate(mempool, *evodb, chain_helper, clhandler, isman);
7373
chainman.m_total_coinstip_cache = nCoinCacheUsage;
7474
chainman.m_total_coinsdb_cache = nCoinDBCache;
7575

0 commit comments

Comments
 (0)