diff options
author | Karl-Johan Alm <karljohan-alm@garage.co.jp> | 2018-06-11 14:16:51 +0900 |
---|---|---|
committer | Karl-Johan Alm <karljohan-alm@garage.co.jp> | 2018-06-11 14:16:51 +0900 |
commit | f6f8026e40326e74293dc8ecc270a7e3b4850727 (patch) | |
tree | 107e86c1ed3f833cc0044663f27b24b3faf44b17 /src/validation.cpp | |
parent | 56f69360dc98bd68704f19646a84d045788d199e (diff) |
validation: check the specified number of blocks (off-by-one)
Diffstat (limited to 'src/validation.cpp')
-rw-r--r-- | src/validation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/validation.cpp b/src/validation.cpp index 9791d6e2d8..43c2e73824 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -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. |