Skip to content

Commit b16ab9a

Browse files
committed
Report progress in ReplayBlocks while rolling forward
1 parent 6916024 commit b16ab9a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/validation.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4103,6 +4103,7 @@ bool CChainState::ReplayBlocks(const CChainParams& params, CCoinsView* view)
41034103
for (int nHeight = nForkHeight + 1; nHeight <= pindexNew->nHeight; ++nHeight) {
41044104
const CBlockIndex* pindex = pindexNew->GetAncestor(nHeight);
41054105
LogPrintf("Rolling forward %s (%i)\n", pindex->GetBlockHash().ToString(), nHeight);
4106+
uiInterface.ShowProgress(_("Replaying blocks..."), (int) ((nHeight - nForkHeight) * 100.0 / (pindexNew->nHeight - nForkHeight)) , false);
41064107
if (!RollforwardBlock(pindex, cache, params)) return false;
41074108
}
41084109

0 commit comments

Comments
 (0)