validation: check the specified number of blocks (off-by-one)
This commit is contained in:
parent
56f69360dc
commit
f6f8026e40
1 changed files with 1 additions and 1 deletions
|
@ -4006,7 +4006,7 @@ bool CVerifyDB::VerifyDB(const CChainParams& chainparams, CCoinsView *coinsview,
|
|||
reportDone = percentageDone/10;
|
||||
}
|
||||
uiInterface.ShowProgress(_("Verifying blocks..."), percentageDone, false);
|
||||
if (pindex->nHeight < chainActive.Height()-nCheckDepth)
|
||||
if (pindex->nHeight <= chainActive.Height()-nCheckDepth)
|
||||
break;
|
||||
if (fPruneMode && !(pindex->nStatus & BLOCK_HAVE_DATA)) {
|
||||
// If pruning, only go back as far as we have data.
|
||||
|
|
Loading…
Add table
Reference in a new issue