mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 06:58:57 +01:00
node/chainstate: Decouple from ArgsManager
...instead pass in only the necessary information
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user