node/chainstate: Decouple from concept of NodeContext

...instead pass in only the necessary information

Also allow mempool to be a nullptr
This commit is contained in:
Carl Dong
2021-09-20 16:44:21 -04:00
parent c7a5c46e6f
commit 9162a4f93e
3 changed files with 6 additions and 7 deletions

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,
node.mempool.get(),
fPruneMode,
chainparams,
fReindexChainState,