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