From b1bb5927c7d079ed539d16abb04481a41c978eeb Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Wed, 6 Apr 2022 22:00:41 -0400 Subject: [PATCH] faster get_hashX_status --- scribe/db/db.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scribe/db/db.py b/scribe/db/db.py index bb9ea00..5587636 100644 --- a/scribe/db/db.py +++ b/scribe/db/db.py @@ -851,12 +851,12 @@ class HubDB: self.prefix_db = None def get_hashX_status(self, hashX: bytes): - mempool_status = self.prefix_db.hashX_mempool_status.get(hashX) + mempool_status = self.prefix_db.hashX_mempool_status.get(hashX, deserialize_value=False) if mempool_status: - return mempool_status.status.hex() - status = self.prefix_db.hashX_status.get(hashX) + return mempool_status.hex() + status = self.prefix_db.hashX_status.get(hashX, deserialize_value=False) if status: - return status.status.hex() + return status.hex() def get_tx_hash(self, tx_num: int) -> bytes: if self._cache_all_tx_hashes: