Skip to content

Commit

Permalink
Move mempool nullptr Assert out of LoadChainstate
Browse files Browse the repository at this point in the history
  • Loading branch information
kwvg committed Dec 16, 2024
1 parent 7071282 commit 29c7362
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1881,7 +1881,7 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info)
llmq::quorumInstantSendManager,
llmq::quorumSnapshotManager,
node.llmq_ctx,
node.mempool.get(),
Assert(node.mempool.get()),
fPruneMode,
args.GetBoolArg("-addressindex", DEFAULT_ADDRESSINDEX),
is_governance_enabled,
Expand Down
2 changes: 1 addition & 1 deletion src/node/chainstate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ std::optional<ChainstateLoadingError> LoadChainstate(bool fReset,
mnhf_manager.reset();
mnhf_manager = std::make_unique<CMNHFManager>(*evodb);

chainman.InitializeChainstate(Assert(mempool), *evodb, chain_helper, clhandler, isman);
chainman.InitializeChainstate(mempool, *evodb, chain_helper, clhandler, isman);
chainman.m_total_coinstip_cache = nCoinCacheUsage;
chainman.m_total_coinsdb_cache = nCoinDBCache;

Expand Down

0 comments on commit 29c7362

Please sign in to comment.