Merge pull request #2778 from jgarzik/rpc-verifydb

RPC: add 'verifychain' to verify chain database at runtime
This commit is contained in:
Jeff Garzik
2013-06-22 23:08:13 -07:00
6 changed files with 26 additions and 6 deletions

View File

@ -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;
}