From b965bfd00521df55aa1c997c8b13d37b93f066d1 Mon Sep 17 00:00:00 2001 From: 4tochka Date: Sun, 5 May 2019 21:57:02 +0400 Subject: [PATCH] connector --- pybtc/connector.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pybtc/connector.py b/pybtc/connector.py index 91bb72c..a026d6d 100644 --- a/pybtc/connector.py +++ b/pybtc/connector.py @@ -52,6 +52,7 @@ class Connector: self.chain_tail = list(chain_tail) if chain_tail else [] self.rpc_timeout = rpc_timeout self.batch_limit = rpc_batch_limit + self.utxo_test = dict() # state and stats self.node_last_block = None @@ -629,6 +630,7 @@ class Connector: else: address = b"".join((bytes([out["nType"]]), out["addressHash"])) outpoint = b"".join((tx["txId"], int_to_bytes(i))) + self.utxo_test[outpoint] = (pointer, out["value"], address) # self.utxo.set(outpoint, pointer, out["value"], address) async def get_stxo(self, tx, block_height, block_index):