diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-08-12 14:40:53 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-08-12 14:40:59 +0200 |
commit | e257b7c4c4517bc90237d879b40a380a8f596788 (patch) | |
tree | 4460ab2684d648646b5576af79c2f532184fd6ca | |
parent | 8bfdc9acaadea086d19fabbf838ddd4c9e313a05 (diff) | |
parent | ea100c73fae8a134c6ae2f1e39f557448734e012 (diff) | |
download | bitcoin-e257b7c4c4517bc90237d879b40a380a8f596788.tar.xz |
Merge pull request #4675
ea100c7 Reduce maximum coinscache size during verification (Wladimir J. van der Laan)
-rw-r--r-- | src/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index ba521b6b19..55206600e2 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -3052,7 +3052,7 @@ bool CVerifyDB::VerifyDB(int nCheckLevel, int nCheckDepth) } } // check level 3: check for inconsistencies during memory-only disconnect of tip blocks - if (nCheckLevel >= 3 && pindex == pindexState && (coins.GetCacheSize() + pcoinsTip->GetCacheSize()) <= 2*nCoinCacheSize + 32000) { + if (nCheckLevel >= 3 && pindex == pindexState && (coins.GetCacheSize() + pcoinsTip->GetCacheSize()) <= nCoinCacheSize) { bool fClean = true; if (!DisconnectBlock(block, state, pindex, coins, &fClean)) return error("VerifyDB() : *** irrecoverable inconsistency in block data at %d, hash=%s", pindex->nHeight, pindex->GetBlockHash().ToString()); |