diff --git a/lib/bcoin/chaindb.js b/lib/bcoin/chaindb.js index 0a44eaee..c3b038d3 100644 --- a/lib/bcoin/chaindb.js +++ b/lib/bcoin/chaindb.js @@ -82,7 +82,7 @@ function ChainDB(chain, options) { // We add a padding of 100 for forked chains, // reorgs, chain locator creation and the bip34 // check. - this.cacheWindow = (network.pow.retargetInterval + 1) * 4 + 100; + this.cacheWindow = (network.pow.retargetInterval + 1) * 2 + 100; this.coinCache = new NullCache(100000); this.cacheHash = new bcoin.lru(this.cacheWindow);