diff options
| author | Jeff Garzik <[email protected]> | 2013-06-19 11:53:02 -0400 |
|---|---|---|
| committer | Jeff Garzik <[email protected]> | 2013-06-19 11:53:02 -0400 |
| commit | f590653377d5ee18c05894a58d226b5d2531077b (patch) | |
| tree | 465961b78de57ed8f58b5942c2f1bb64d3de7b25 /src/main.cpp | |
| parent | Pass check level, check depth to VerifyDB() (diff) | |
| download | discoin-f590653377d5ee18c05894a58d226b5d2531077b.tar.xz discoin-f590653377d5ee18c05894a58d226b5d2531077b.zip | |
RPC: add 'verifychain', to verify chain database at runtime
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index 58c0c9363..4f29f7711 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; |