aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2018-09-13 14:06:25 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2018-09-13 14:07:20 +0200
commitb9ed2fd026926cafe38a1ee23d47eb891a94ddb1 (patch)
tree756e141384a6c3a597c265cd7c3fd4e9e5dc28ad /src
parentef425f69af90e4c466d98f2ad4578b4385649b3a (diff)
parentb16ab9af07f802cc769c2443df1c637e8e12ab80 (diff)
Merge #13310: Report progress in ReplayBlocks while rolling forward
b16ab9af07f802cc769c2443df1c637e8e12ab80 Report progress in ReplayBlocks while rolling forward (João Barbosa) Pull request description: Fixes #13303. Tree-SHA512: 9375bda03bd2527018b9d24a25c82fa01a841e41ae2cb5307be61af19e2b759d3a7db76852baba9a286fbcb52f70f427a5ab4375df08215ac439e47e73633e54
Diffstat (limited to 'src')
-rw-r--r--src/validation.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/validation.cpp b/src/validation.cpp
index d4a84c53b5..947192be0e 100644
--- a/src/validation.cpp
+++ b/src/validation.cpp
@@ -4133,6 +4133,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;
}