From 4ca8e91fb818cc692ab3e2fda8de5da4ff29c344 Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Wed, 13 Apr 2022 15:49:45 -0400 Subject: [PATCH] increase hashX_full_cache and hashX_history_cache sizes --- scribe/blockchain/service.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scribe/blockchain/service.py b/scribe/blockchain/service.py index 8375031..8a4c410 100644 --- a/scribe/blockchain/service.py +++ b/scribe/blockchain/service.py @@ -125,8 +125,8 @@ class BlockchainProcessorService(BlockchainService): self.pending_transaction_num_mapping: Dict[bytes, int] = {} self.pending_transactions: Dict[int, bytes] = {} - self.hashX_history_cache = LRUCache(100) - self.hashX_full_cache = LRUCache(100) + self.hashX_history_cache = LRUCache(1000) + self.hashX_full_cache = LRUCache(1000) async def run_in_thread_with_lock(self, func, *args): # Run in a thread to prevent blocking. Shielded so that