From 9162a4f93ef5aeb57fe11a6e09f5881cf431f5e6 Mon Sep 17 00:00:00 2001 From: Carl Dong Date: Mon, 20 Sep 2021 16:44:21 -0400 Subject: node/chainstate: Decouple from concept of NodeContext ...instead pass in only the necessary information Also allow mempool to be a nullptr --- src/init.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/init.cpp') diff --git a/src/init.cpp b/src/init.cpp index f44373728d..eb23ae501c 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -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, + node.mempool.get(), fPruneMode, chainparams, fReindexChainState, -- cgit v1.2.3