Decrease MAX_TX_QUERY_LIMIT_SUMMARY to 500

- Summary cache is triggered for addresses with more than 500 tx
This commit is contained in:
sairajzero 2023-04-22 23:55:11 +05:30
parent e7248320a6
commit 158d5aefc2

View File

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