From e2bcbcaba5835cad351390aa3457f85d4331d04c Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Thu, 5 May 2016 18:57:34 -0700 Subject: [PATCH] cache, again. --- lib/bcoin/chaindb.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);