@@ -3544,7 +3544,11 @@ bool Chainstate::ActivateBestChain(BlockValidationState& state, std::shared_ptr<
35443544 m_chainman.m_options .signals ->UpdatedBlockTip (pindexNewTip, pindexFork, still_in_ibd);
35453545 }
35463546
3547- if (kernel::IsInterrupted (m_chainman.GetNotifications ().blockTip (GetSynchronizationState (still_in_ibd, m_chainman.m_blockman .m_blockfiles_indexed ), *pindexNewTip))) {
3547+ if (kernel::IsInterrupted (m_chainman.GetNotifications ().blockTip (
3548+ /* state=*/ GetSynchronizationState (still_in_ibd, m_chainman.m_blockman .m_blockfiles_indexed ),
3549+ /* index=*/ *pindexNewTip,
3550+ /* verification_progress=*/ m_chainman.GuessVerificationProgress (pindexNewTip))))
3551+ {
35483552 // Just breaking and returning success for now. This could
35493553 // be changed to bubble up the kernel::Interrupted value to
35503554 // the caller so the caller could distinguish between
@@ -3777,7 +3781,10 @@ bool Chainstate::InvalidateBlock(BlockValidationState& state, CBlockIndex* pinde
37773781 // parameter indicating the source of the tip change so hooks can
37783782 // distinguish user-initiated invalidateblock changes from other
37793783 // changes.
3780- (void )m_chainman.GetNotifications ().blockTip (GetSynchronizationState (m_chainman.IsInitialBlockDownload (), m_chainman.m_blockman .m_blockfiles_indexed ), *to_mark_failed->pprev );
3784+ (void )m_chainman.GetNotifications ().blockTip (
3785+ /* state=*/ GetSynchronizationState (m_chainman.IsInitialBlockDownload (), m_chainman.m_blockman .m_blockfiles_indexed ),
3786+ /* index=*/ *to_mark_failed->pprev ,
3787+ /* verification_progress=*/ WITH_LOCK (m_chainman.GetMutex (), return m_chainman.GuessVerificationProgress (to_mark_failed->pprev )));
37813788
37823789 // Fire ActiveTipChange now for the current chain tip to make sure clients are notified.
37833790 // ActivateBestChain may call this as well, but not necessarily.
@@ -4675,7 +4682,10 @@ bool Chainstate::LoadChainTip()
46754682 // Ensure KernelNotifications m_tip_block is set even if no new block arrives.
46764683 if (this ->GetRole () != ChainstateRole::BACKGROUND) {
46774684 // Ignoring return value for now.
4678- (void )m_chainman.GetNotifications ().blockTip (GetSynchronizationState (/* init=*/ true , m_chainman.m_blockman .m_blockfiles_indexed ), *pindex);
4685+ (void )m_chainman.GetNotifications ().blockTip (
4686+ /* state=*/ GetSynchronizationState (/* init=*/ true , m_chainman.m_blockman .m_blockfiles_indexed ),
4687+ /* index=*/ *pindex,
4688+ /* verification_progress=*/ m_chainman.GuessVerificationProgress (tip));
46794689 }
46804690
46814691 return true ;
0 commit comments