aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
authorJeff Garzik <jgarzik@bitpay.com>2013-06-22 23:08:13 -0700
committerJeff Garzik <jgarzik@bitpay.com>2013-06-22 23:08:13 -0700
commit4be2aba302a30812df6962c5ea3b81669ed630e9 (patch)
treea13baf0711b1db62143bc2d00d2f0d48a64106e9 /src/init.cpp
parentb4a8a326c067a350b5a5ff0e565555b57ffb3a2e (diff)
parentf590653377d5ee18c05894a58d226b5d2531077b (diff)
Merge pull request #2778 from jgarzik/rpc-verifydb
RPC: add 'verifychain' to verify chain database at runtime
Diffstat (limited to 'src/init.cpp')
-rw-r--r--src/init.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/init.cpp b/src/init.cpp
index 4e599048ac..5090c4ea40 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -763,7 +763,8 @@ bool AppInit2(boost::thread_group& threadGroup)
}
uiInterface.InitMessage(_("Verifying blocks..."));
- if (!VerifyDB()) {
+ if (!VerifyDB(GetArg("-checklevel", 3),
+ GetArg( "-checkblocks", 288))) {
strLoadError = _("Corrupted block database detected");
break;
}