node/chainstate: Decouple from ArgsManager

...instead pass in only the necessary information
This commit is contained in:
Carl Dong
2021-08-16 17:03:33 -04:00
parent ae9121f958
commit c7a5c46e6f
3 changed files with 12 additions and 10 deletions

View File

@@ -1424,11 +1424,12 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info)
node,
fPruneMode,
chainparams,
args,
fReindexChainState,
nBlockTreeDBCache,
nCoinDBCache,
nCoinCacheUsage);
nCoinCacheUsage,
args.GetIntArg("-checkblocks", DEFAULT_CHECKBLOCKS),
args.GetIntArg("-checklevel", DEFAULT_CHECKLEVEL));
if (rv.has_value()) {
switch (rv.value()) {
case ChainstateLoadingError::ERROR_LOADING_BLOCK_DB: