increase hashX_full_cache and hashX_history_cache sizes

This commit is contained in:
Jack Robison 2022-04-13 15:49:45 -04:00
parent 4f0359c177
commit 4ca8e91fb8
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

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