File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1417,7 +1417,7 @@ static RPCHelpMan verifychain()
14171417 },
14181418 [&](const RPCHelpMan& self, const JSONRPCRequest& request) -> UniValue
14191419{
1420- const int check_level ( request.params [0 ].isNull () ? DEFAULT_CHECKLEVEL : request.params [0 ].get_int ()) ;
1420+ const int check_level{ request.params [0 ].isNull () ? DEFAULT_CHECKLEVEL : request.params [0 ].get_int ()} ;
14211421 const int check_depth{request.params [1 ].isNull () ? DEFAULT_CHECKBLOCKS : request.params [1 ].get_int ()};
14221422
14231423 ChainstateManager& chainman = EnsureAnyChainman (request.context );
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ static const int DEFAULT_STOPATHEIGHT = 0;
9090/* * Block files containing a block-height within MIN_BLOCKS_TO_KEEP of ActiveChain().Tip() will not be pruned. */
9191static const unsigned int MIN_BLOCKS_TO_KEEP = 288 ;
9292static const signed int DEFAULT_CHECKBLOCKS = 6 ;
93- static const unsigned int DEFAULT_CHECKLEVEL = 3 ;
93+ static constexpr int DEFAULT_CHECKLEVEL{ 3 } ;
9494// Require that user allocate at least 550 MiB for block & undo files (blk???.dat and rev???.dat)
9595// At 1MB per block, 288 blocks = 288MB.
9696// Add 15% for Undo data = 331MB
You can’t perform that action at this time.
0 commit comments