From c7a5c46e6fd6d6ff46ca7a65fc3f0fff3cbdb24e Mon Sep 17 00:00:00 2001 From: Carl Dong Date: Mon, 16 Aug 2021 17:03:33 -0400 Subject: node/chainstate: Decouple from ArgsManager ...instead pass in only the necessary information --- src/init.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/init.cpp') diff --git a/src/init.cpp b/src/init.cpp index 474a31c758..f44373728d 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -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: -- cgit v1.2.3