diff options
author | Carl Dong <contact@carldong.me> | 2021-08-16 17:03:33 -0400 |
---|---|---|
committer | Carl Dong <contact@carldong.me> | 2021-12-06 15:56:55 -0500 |
commit | c7a5c46e6fd6d6ff46ca7a65fc3f0fff3cbdb24e (patch) | |
tree | bf2095cf76e1e7f1677395f71c18d6feea62d922 /src/init.cpp | |
parent | ae9121f958a4124ea6238cad0c3f2acb8b9eb4bb (diff) | |
download | bitcoin-c7a5c46e6fd6d6ff46ca7a65fc3f0fff3cbdb24e.tar.xz |
node/chainstate: Decouple from ArgsManager
...instead pass in only the necessary information
Diffstat (limited to 'src/init.cpp')
-rw-r--r-- | src/init.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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: |