Merge pull request #294 from thrasher-/master

Litecoin: Adjust nCheckDepth value
This commit is contained in:
thrasher 2017-03-28 15:54:27 +11:00 committed by GitHub
commit 9b08552c25

View File

@ -4158,7 +4158,7 @@ bool CVerifyDB::VerifyDB(const CChainParams& chainparams, CCoinsView *coinsview,
// Verify blocks in the best chain
if (nCheckDepth <= 0)
nCheckDepth = 1000000000; // suffices until the year 19000
nCheckDepth = 4000000000; // suffices until the year 19000
if (nCheckDepth > chainActive.Height())
nCheckDepth = chainActive.Height();
nCheckLevel = std::max(0, std::min(4, nCheckLevel));