From 15bd5af6a1b131a6c18454c7c7d2a2e4acd6ce09 Mon Sep 17 00:00:00 2001 From: kenshin-samourai Date: Fri, 15 May 2020 14:41:37 +0200 Subject: [PATCH] decrease size of prevCache in Transactions --- lib/bitcoind-rpc/transactions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bitcoind-rpc/transactions.js b/lib/bitcoind-rpc/transactions.js index a0b8b15..b46b3b3 100644 --- a/lib/bitcoind-rpc/transactions.js +++ b/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