aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 58c0c93635..4f29f77112 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -2622,7 +2622,7 @@ bool VerifyDB(int nCheckLevel, int nCheckDepth)
return true;
// Verify blocks in the best chain
- if (nCheckDepth == 0)
+ if (nCheckDepth <= 0)
nCheckDepth = 1000000000; // suffices until the year 19000
if (nCheckDepth > nBestHeight)
nCheckDepth = nBestHeight;