increase hashX_full_cache and hashX_history_cache sizes
This commit is contained in:
parent
4f0359c177
commit
4ca8e91fb8
1 changed files with 2 additions and 2 deletions
|
@ -125,8 +125,8 @@ class BlockchainProcessorService(BlockchainService):
|
||||||
self.pending_transaction_num_mapping: Dict[bytes, int] = {}
|
self.pending_transaction_num_mapping: Dict[bytes, int] = {}
|
||||||
self.pending_transactions: Dict[int, bytes] = {}
|
self.pending_transactions: Dict[int, bytes] = {}
|
||||||
|
|
||||||
self.hashX_history_cache = LRUCache(100)
|
self.hashX_history_cache = LRUCache(1000)
|
||||||
self.hashX_full_cache = LRUCache(100)
|
self.hashX_full_cache = LRUCache(1000)
|
||||||
|
|
||||||
async def run_in_thread_with_lock(self, func, *args):
|
async def run_in_thread_with_lock(self, func, *args):
|
||||||
# Run in a thread to prevent blocking. Shielded so that
|
# Run in a thread to prevent blocking. Shielded so that
|
||||||
|
|
Loading…
Reference in a new issue