diff --git a/pybtc/connector.py b/pybtc/connector.py index db112d1..d6c28d1 100644 --- a/pybtc/connector.py +++ b/pybtc/connector.py @@ -592,8 +592,8 @@ class Connector: if not tx["coinbase"]: if block_height is not None: await self.wait_block_dependences(tx) - # if self.utxo: - # stxo = await self.get_stxo(tx, block_height, block_index) + if self.utxo: + stxo = await self.get_stxo(tx, block_height, block_index) if self.tx_handler and not self.cache_loading: await self.tx_handler(tx, stxo, block_time, block_height, block_index) @@ -872,7 +872,7 @@ class UTXO(): def get(self, key, block_height): self._requests += 1 try: - i = self.cached.pop(key) + i = self.cached.get(key) self.destroyed_utxo += 1 # try: # self.destroyed[block_height].add(key)