|
|
|
@ -2616,13 +2616,12 @@ bool static LoadBlockIndexDB()
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool VerifyDB() {
|
|
|
|
|
bool VerifyDB(int nCheckLevel, int nCheckDepth)
|
|
|
|
|
{
|
|
|
|
|
if (pindexBest == NULL || pindexBest->pprev == NULL)
|
|
|
|
|
return true;
|
|
|
|
|
|
|
|
|
|
// Verify blocks in the best chain
|
|
|
|
|
int nCheckLevel = GetArg("-checklevel", 3);
|
|
|
|
|
int nCheckDepth = GetArg( "-checkblocks", 288);
|
|
|
|
|
if (nCheckDepth == 0)
|
|
|
|
|
nCheckDepth = 1000000000; // suffices until the year 19000
|
|
|
|
|
if (nCheckDepth > nBestHeight)
|
|
|
|
|