Skip to content

Commit

Permalink
[Startup] Decrease the amount of blocks checked for corruption in the…
Browse files Browse the repository at this point in the history
… startup.

100 blocks checked for corruption is too much, having only 10 is more than enough to verify the db consistency.

Github-Pull: #1217
Rebased-From: 6d5c84e
  • Loading branch information
furszy authored and Fuzzbawls committed Jan 11, 2020
1 parent 3b67bc6 commit 784094b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1603,7 +1603,7 @@ bool AppInit2()
}

// Zerocoin must check at level 4
if (!CVerifyDB().VerifyDB(pcoinsdbview, 4, GetArg("-checkblocks", 100))) {
if (!CVerifyDB().VerifyDB(pcoinsdbview, 4, GetArg("-checkblocks", 10))) {
strLoadError = _("Corrupted block database detected");
fVerifyingBlocks = false;
break;
Expand Down

0 comments on commit 784094b

Please sign in to comment.