cache, again.
This commit is contained in:
parent
625fb729f5
commit
e2bcbcaba5
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user