Expose multi_get from rocksdb, use it for fetching tx hashes #23

Merged
jackrobison merged 2 commits from multiget-tx-hashes into master 2022-04-13 21:58:04 +02:00
Showing only changes of commit 4ca8e91fb8 - Show all commits

View file

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