Report progress in ReplayBlocks while rolling forward
This commit is contained in:
parent
6916024768
commit
b16ab9af07
1 changed files with 1 additions and 0 deletions
|
@ -4103,6 +4103,7 @@ bool CChainState::ReplayBlocks(const CChainParams& params, CCoinsView* view)
|
||||||
for (int nHeight = nForkHeight + 1; nHeight <= pindexNew->nHeight; ++nHeight) {
|
for (int nHeight = nForkHeight + 1; nHeight <= pindexNew->nHeight; ++nHeight) {
|
||||||
const CBlockIndex* pindex = pindexNew->GetAncestor(nHeight);
|
const CBlockIndex* pindex = pindexNew->GetAncestor(nHeight);
|
||||||
LogPrintf("Rolling forward %s (%i)\n", pindex->GetBlockHash().ToString(), nHeight);
|
LogPrintf("Rolling forward %s (%i)\n", pindex->GetBlockHash().ToString(), nHeight);
|
||||||
|
uiInterface.ShowProgress(_("Replaying blocks..."), (int) ((nHeight - nForkHeight) * 100.0 / (pindexNew->nHeight - nForkHeight)) , false);
|
||||||
if (!RollforwardBlock(pindex, cache, params)) return false;
|
if (!RollforwardBlock(pindex, cache, params)) return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue