aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKarl-Johan Alm <[email protected]>2018-06-11 14:16:51 +0900
committerKarl-Johan Alm <[email protected]>2018-06-11 14:16:51 +0900
commitf6f8026e40326e74293dc8ecc270a7e3b4850727 (patch)
tree107e86c1ed3f833cc0044663f27b24b3faf44b17 /src
parentMerge #13374: utils and libraries: checking for bitcoin address in translations (diff)
downloaddiscoin-f6f8026e40326e74293dc8ecc270a7e3b4850727.tar.xz
discoin-f6f8026e40326e74293dc8ecc270a7e3b4850727.zip
validation: check the specified number of blocks (off-by-one)
Diffstat (limited to 'src')
-rw-r--r--src/validation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/validation.cpp b/src/validation.cpp
index 9791d6e2d..43c2e7382 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.