mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 13:03:17 +01:00
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
This commit is contained in:
parent
04152daeaa
commit
dbc2e70096
@ -4678,6 +4678,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 New Issue
Block a user