Skip to content

Commit f6f8026

Browse files
committed
validation: check the specified number of blocks (off-by-one)
1 parent 56f6936 commit f6f8026

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/validation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4006,7 +4006,7 @@ bool CVerifyDB::VerifyDB(const CChainParams& chainparams, CCoinsView *coinsview,
40064006
reportDone = percentageDone/10;
40074007
}
40084008
uiInterface.ShowProgress(_("Verifying blocks..."), percentageDone, false);
4009-
if (pindex->nHeight < chainActive.Height()-nCheckDepth)
4009+
if (pindex->nHeight <= chainActive.Height()-nCheckDepth)
40104010
break;
40114011
if (fPruneMode && !(pindex->nStatus & BLOCK_HAVE_DATA)) {
40124012
// If pruning, only go back as far as we have data.

0 commit comments

Comments
 (0)