reduce history_tx_info_cache size

This commit is contained in:
Jack Robison 2022-05-11 12:46:29 -04:00
parent f91d2be91e
commit 460a06ec04
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

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