From 79544a046e97bad8b170139fa63fdb7f726ac87d Mon Sep 17 00:00:00 2001 From: 4tochka Date: Mon, 6 May 2019 12:31:45 +0400 Subject: [PATCH] connector --- pybtc/connector.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)