diff options
author | João Barbosa <joao.paulo.barbosa@gmail.com> | 2018-05-23 11:53:19 +0100 |
---|---|---|
committer | João Barbosa <joao.paulo.barbosa@gmail.com> | 2018-05-23 11:53:19 +0100 |
commit | b16ab9af07f802cc769c2443df1c637e8e12ab80 (patch) | |
tree | 3c82374d5c10f25c5f2d9651b533994ac7397361 /src | |
parent | 6916024768ec57a00f54224640ab4e4871d2a30a (diff) |
Report progress in ReplayBlocks while rolling forward
Diffstat (limited to 'src')
-rw-r--r-- | src/validation.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/validation.cpp b/src/validation.cpp index 3971906424..c1e8ba5558 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -4103,6 +4103,7 @@ bool CChainState::ReplayBlocks(const CChainParams& params, CCoinsView* view) for (int nHeight = nForkHeight + 1; nHeight <= pindexNew->nHeight; ++nHeight) { const CBlockIndex* pindex = pindexNew->GetAncestor(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; } |