mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-07-05 05:02:06 +02:00
Merge pull request #2778 from jgarzik/rpc-verifydb
RPC: add 'verifychain' to verify chain database at runtime
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user