From 158d5aefc2159a209f8b0adfa82aecda3973795d Mon Sep 17 00:00:00 2001 From: sairajzero Date: Sat, 22 Apr 2023 23:55:11 +0530 Subject: [PATCH] Decrease MAX_TX_QUERY_LIMIT_SUMMARY to 500 - Summary cache is triggered for addresses with more than 500 tx --- lib/services/address/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/services/address/index.js b/lib/services/address/index.js index 3d9ac36e..2b70b8f2 100644 --- a/lib/services/address/index.js +++ b/lib/services/address/index.js @@ -18,7 +18,7 @@ var XXHash = require('xxhash'); const MAX_TX_QUERY_LIMIT_HISTORY = 1000; const MAX_TX_QUERY_LIMIT_UTXO = 1000; -const MAX_TX_QUERY_LIMIT_SUMMARY = 5000; +const MAX_TX_QUERY_LIMIT_SUMMARY = 500; // See rationale about this cache at function getTxList(next) const TXID_LIST_CACHE_ITEMS = 250; // nr of items (this translates to: consecutive