mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 03:52:49 +01:00
Move mempool nullptr Assert out of LoadChainstate
This commit is contained in:
parent
7071282a2d
commit
29c736280d
@ -1881,7 +1881,7 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info)
|
|||||||
llmq::quorumInstantSendManager,
|
llmq::quorumInstantSendManager,
|
||||||
llmq::quorumSnapshotManager,
|
llmq::quorumSnapshotManager,
|
||||||
node.llmq_ctx,
|
node.llmq_ctx,
|
||||||
node.mempool.get(),
|
Assert(node.mempool.get()),
|
||||||
fPruneMode,
|
fPruneMode,
|
||||||
args.GetBoolArg("-addressindex", DEFAULT_ADDRESSINDEX),
|
args.GetBoolArg("-addressindex", DEFAULT_ADDRESSINDEX),
|
||||||
is_governance_enabled,
|
is_governance_enabled,
|
||||||
|
@ -69,7 +69,7 @@ std::optional<ChainstateLoadingError> LoadChainstate(bool fReset,
|
|||||||
mnhf_manager.reset();
|
mnhf_manager.reset();
|
||||||
mnhf_manager = std::make_unique<CMNHFManager>(*evodb);
|
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_coinstip_cache = nCoinCacheUsage;
|
||||||
chainman.m_total_coinsdb_cache = nCoinDBCache;
|
chainman.m_total_coinsdb_cache = nCoinDBCache;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user