mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-16 13:01:19 +02:00
Merge pull request #2778 from jgarzik/rpc-verifydb
RPC: add 'verifychain' to verify chain database at runtime
This commit is contained in:
commit
4be2aba302
6 changed files with 26 additions and 6 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue