mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
node/chainstate: Decouple from ArgsManager
...instead pass in only the necessary information
This commit is contained in:
parent
ae9121f958
commit
c7a5c46e6f
3 changed files with 12 additions and 10 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue