From 0b56662e5566e9f53537f41c138840a01e172a2b Mon Sep 17 00:00:00 2001 From: 4tochka Date: Sun, 5 May 2019 23:25:02 +0400 Subject: [PATCH] connector --- pybtc/connector.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pybtc/connector.py b/pybtc/connector.py index 8213d01..f4a2e8c 100644 --- a/pybtc/connector.py +++ b/pybtc/connector.py @@ -641,7 +641,7 @@ class Connector: for i in tx["vIn"]: inp = tx["vIn"][i] - outpoint = b"%s%s" % (inp["txId"], int_to_bytes(inp["vOut"])) + outpoint = b"".join((inp["txId"], int_to_bytes(inp["vOut"]))) r = self.utxo.get(outpoint, block_height) stxo.add(r) if r else missed.add((outpoint, (block_height << 42) + (block_index << 21) + i))