cache, again.

This commit is contained in:
Christopher Jeffrey 2016-05-05 18:57:34 -07:00
parent 625fb729f5
commit e2bcbcaba5
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -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);