aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorJeff Garzik <jgarzik@bitpay.com>2013-06-19 11:32:49 -0400
committerJeff Garzik <jgarzik@bitpay.com>2013-06-19 11:32:49 -0400
commit168ba993921c2c1a21cad1f03a331f7c01c67079 (patch)
tree322cc79cf2e856618df25ecee1cea13cf3594e43 /src/main.cpp
parent25dbb928600b2c65bc20ce026c5f9cf1fb457d60 (diff)
downloadbitcoin-168ba993921c2c1a21cad1f03a331f7c01c67079.tar.xz
Pass check level, check depth to VerifyDB()
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main.cpp b/src/main.cpp
index f0c08d273f..58c0c93635 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -2616,13 +2616,12 @@ bool static LoadBlockIndexDB()
return true;
}
-bool VerifyDB() {
+bool VerifyDB(int nCheckLevel, int nCheckDepth)
+{
if (pindexBest == NULL || pindexBest->pprev == NULL)
return true;
// Verify blocks in the best chain
- int nCheckLevel = GetArg("-checklevel", 3);
- int nCheckDepth = GetArg( "-checkblocks", 288);
if (nCheckDepth == 0)
nCheckDepth = 1000000000; // suffices until the year 19000
if (nCheckDepth > nBestHeight)