Browse Source

decrease size of prevCache in Transactions

use-env-var-docker
kenshin-samourai 5 years ago
parent
commit
15bd5af6a1
  1. 2
      lib/bitcoind-rpc/transactions.js

2
lib/bitcoind-rpc/transactions.js

@ -25,7 +25,7 @@ class Transactions {
// Caches
this.prevCache = LRU({
// Maximum number of transactions to store
max: 100000,
max: 20000,
// Function used to compute length of item
length: (n, key) => 1,
// Maximum age for items in the cache. Items do not expire

Loading…
Cancel
Save