From 399bdfd9bd8667a8ed0b28d3e844c4c8a34d4e05 Mon Sep 17 00:00:00 2001 From: 4tochka Date: Thu, 9 May 2019 18:01:10 +0400 Subject: [PATCH] connector --- pybtc/connector/connector.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pybtc/connector/connector.py b/pybtc/connector/connector.py index 42423e3..6314c7f 100644 --- a/pybtc/connector/connector.py +++ b/pybtc/connector/connector.py @@ -593,12 +593,10 @@ class Connector: stxo, missed = set(), set() for i in tx["vIn"]: inp = tx["vIn"][i] - self.log.critical(">>> " + str(inp)) outpoint = b"".join((inp["txId"], int_to_bytes(inp["vOut"]))) try: - stxo.add(outpoint, tx["vIn"][i]["_c_"]) + stxo.add((outpoint, inp["_c_"][0], inp["_c_"][1], inp["_c_"][2])) self.yy += 1 - self.log.critical(">>> " + str(tx["vIn"][i]["_c_"])) except Exception as err: r = self.utxo.get(outpoint, block_height) stxo.add(r) if r else missed.add((outpoint, (block_height << 42) + (block_index << 21) + i))