From 460a06ec0441cf597a78775b506c46dac7c2893f Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Wed, 11 May 2022 12:46:29 -0400 Subject: [PATCH] reduce history_tx_info_cache size --- scribe/blockchain/service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scribe/blockchain/service.py b/scribe/blockchain/service.py index 767442f..0de6285 100644 --- a/scribe/blockchain/service.py +++ b/scribe/blockchain/service.py @@ -118,7 +118,7 @@ class BlockchainProcessorService(BlockchainService): self.hashX_history_cache = LRUCache(min(100, max(0, env.hashX_history_cache_size))) self.hashX_full_cache = LRUCache(min(100, max(0, env.hashX_history_cache_size))) - self.history_tx_info_cache = LRUCache(2 ** 20) + self.history_tx_info_cache = LRUCache(2 ** 16) async def run_in_thread_with_lock(self, func, *args): # Run in a thread to prevent blocking. Shielded so that