From c966d53862dc6a64cca998d77644929f636c0396 Mon Sep 17 00:00:00 2001 From: 4tochka Date: Sun, 5 May 2019 20:49:44 +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 0f6e24c..91bb72c 100644 --- a/pybtc/connector.py +++ b/pybtc/connector.py @@ -627,7 +627,7 @@ class Connector: if "addressHash" not in out: address = out["scriptPubKey"] else: - address = b"%s%s" % (bytes([out["nType"]]), out["addressHash"]) + address = b"".join((bytes([out["nType"]]), out["addressHash"])) outpoint = b"".join((tx["txId"], int_to_bytes(i))) # self.utxo.set(outpoint, pointer, out["value"], address)