aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorJeff Garzik <jgarzik@bitpay.com>2013-06-19 11:53:02 -0400
committerJeff Garzik <jgarzik@bitpay.com>2013-06-19 11:53:02 -0400
commitf590653377d5ee18c05894a58d226b5d2531077b (patch)
tree465961b78de57ed8f58b5942c2f1bb64d3de7b25 /src/main.cpp
parent168ba993921c2c1a21cad1f03a331f7c01c67079 (diff)
RPC: add 'verifychain', to verify chain database at runtime
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;