@@ -3591,14 +3591,14 @@ bool CChainState::AcceptBlock(const std::shared_ptr<const CBlock>& pblock, Block
35913591 return true ;
35923592}
35933593
3594- bool ChainstateManager::ProcessNewBlock (const CChainParams& chainparams, const std::shared_ptr<const CBlock> pblock , bool fForceProcessing , bool * fNewBlock )
3594+ bool ChainstateManager::ProcessNewBlock (const CChainParams& chainparams, const std::shared_ptr<const CBlock>& block , bool force_processing , bool * new_block )
35953595{
35963596 AssertLockNotHeld (cs_main);
35973597 assert (std::addressof (::ChainstateActive ()) == std::addressof (ActiveChainstate ()));
35983598
35993599 {
36003600 CBlockIndex *pindex = nullptr ;
3601- if (fNewBlock ) *fNewBlock = false ;
3601+ if (new_block ) *new_block = false ;
36023602 BlockValidationState state;
36033603
36043604 // CheckBlock() does not support multi-threaded block validation because CBlock::fChecked can cause data race.
@@ -3607,21 +3607,21 @@ bool ChainstateManager::ProcessNewBlock(const CChainParams& chainparams, const s
36073607
36083608 // Ensure that CheckBlock() passes before calling AcceptBlock, as
36093609 // belt-and-suspenders.
3610- bool ret = CheckBlock (*pblock , state, chainparams.GetConsensus ());
3610+ bool ret = CheckBlock (*block , state, chainparams.GetConsensus ());
36113611 if (ret) {
36123612 // Store to disk
3613- ret = ActiveChainstate ().AcceptBlock (pblock , state, chainparams, &pindex, fForceProcessing , nullptr , fNewBlock );
3613+ ret = ActiveChainstate ().AcceptBlock (block , state, chainparams, &pindex, force_processing , nullptr , new_block );
36143614 }
36153615 if (!ret) {
3616- GetMainSignals ().BlockChecked (*pblock , state);
3616+ GetMainSignals ().BlockChecked (*block , state);
36173617 return error (" %s: AcceptBlock FAILED (%s)" , __func__, state.ToString ());
36183618 }
36193619 }
36203620
36213621 NotifyHeaderTip (ActiveChainstate ());
36223622
36233623 BlockValidationState state; // Only used to report errors, not invalidity - ignore it
3624- if (!ActiveChainstate ().ActivateBestChain (state, chainparams, pblock ))
3624+ if (!ActiveChainstate ().ActivateBestChain (state, chainparams, block ))
36253625 return error (" %s: ActivateBestChain failed (%s)" , __func__, state.ToString ());
36263626
36273627 return true ;
0 commit comments