diff options
| author | Karl-Johan Alm <[email protected]> | 2018-06-11 14:16:51 +0900 |
|---|---|---|
| committer | Karl-Johan Alm <[email protected]> | 2018-06-11 14:16:51 +0900 |
| commit | f6f8026e40326e74293dc8ecc270a7e3b4850727 (patch) | |
| tree | 107e86c1ed3f833cc0044663f27b24b3faf44b17 /src | |
| parent | Merge #13374: utils and libraries: checking for bitcoin address in translations (diff) | |
| download | discoin-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.cpp | 2 |
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. |