diff options
| author | João Barbosa <[email protected]> | 2018-05-23 11:53:19 +0100 |
|---|---|---|
| committer | João Barbosa <[email protected]> | 2018-05-23 11:53:19 +0100 |
| commit | b16ab9af07f802cc769c2443df1c637e8e12ab80 (patch) | |
| tree | 3c82374d5c10f25c5f2d9651b533994ac7397361 /src/validation.cpp | |
| parent | Merge #13282: trivial: Mark overrides as such. (diff) | |
| download | discoin-b16ab9af07f802cc769c2443df1c637e8e12ab80.tar.xz discoin-b16ab9af07f802cc769c2443df1c637e8e12ab80.zip | |
Report progress in ReplayBlocks while rolling forward
Diffstat (limited to 'src/validation.cpp')
| -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 397190642..c1e8ba555 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; } |