@@ -1372,7 +1372,7 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info)
13721372 // block file from disk.
13731373 // Note that it also sets fReindex based on the disk flag!
13741374 // From here on out fReindex and fReset mean something different!
1375- if (!chainman.LoadBlockIndex (chainparams )) {
1375+ if (!chainman.LoadBlockIndex ()) {
13761376 if (ShutdownRequested ()) break ;
13771377 strLoadError = _ (" Error loading block database" );
13781378 break ;
@@ -1396,7 +1396,7 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info)
13961396 // If we're not mid-reindex (based on disk + args), add a genesis block on disk
13971397 // (otherwise we use the one already on disk).
13981398 // This is called again in ThreadImport after the reindex completes.
1399- if (!fReindex && !chainman.ActiveChainstate ().LoadGenesisBlock (chainparams )) {
1399+ if (!fReindex && !chainman.ActiveChainstate ().LoadGenesisBlock ()) {
14001400 strLoadError = _ (" Error initializing block database" );
14011401 break ;
14021402 }
@@ -1427,7 +1427,7 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info)
14271427 }
14281428
14291429 // ReplayBlocks is a no-op if we cleared the coinsviewdb with -reindex or -reindex-chainstate
1430- if (!chainstate->ReplayBlocks (chainparams )) {
1430+ if (!chainstate->ReplayBlocks ()) {
14311431 strLoadError = _ (" Unable to replay blocks. You will need to rebuild the database using -reindex-chainstate." );
14321432 failed_chainstate_init = true ;
14331433 break ;
@@ -1439,7 +1439,7 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info)
14391439
14401440 if (!is_coinsview_empty (chainstate)) {
14411441 // LoadChainTip initializes the chain based on CoinsTip()'s best block
1442- if (!chainstate->LoadChainTip (chainparams )) {
1442+ if (!chainstate->LoadChainTip ()) {
14431443 strLoadError = _ (" Error initializing block database" );
14441444 failed_chainstate_init = true ;
14451445 break ; // out of the per-chainstate loop
@@ -1461,7 +1461,7 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info)
14611461 LOCK (cs_main);
14621462 auto chainstates{chainman.GetAll ()};
14631463 if (std::any_of (chainstates.begin (), chainstates.end (),
1464- [&chainparams ](const CChainState* cs) EXCLUSIVE_LOCKS_REQUIRED (cs_main) { return cs->NeedsRedownload (chainparams ); })) {
1464+ [](const CChainState* cs) EXCLUSIVE_LOCKS_REQUIRED (cs_main) { return cs->NeedsRedownload (); })) {
14651465 strLoadError = strprintf (_ (" Witness data for blocks after height %d requires validation. Please restart with -reindex." ),
14661466 chainparams.GetConsensus ().SegwitHeight );
14671467 break ;
0 commit comments