From 902ec2dc696c513bac6c5fc673563c445f613627 Mon Sep 17 00:00:00 2001 From: SomberNight Date: Tue, 3 Oct 2017 01:34:45 +0200 Subject: [PATCH] fix: unresolved variable _bytes in transaction.parse_redeemScript() --- lib/transaction.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/transaction.py b/lib/transaction.py index 62374898..41748762 100644 --- a/lib/transaction.py +++ b/lib/transaction.py @@ -363,7 +363,7 @@ def parse_redeemScript(s): op_n = opcodes.OP_1 + n - 1 match_multisig = [ op_m ] + [opcodes.OP_PUSHDATA4]*n + [ op_n, opcodes.OP_CHECKMULTISIG ] if not match_decoded(dec2, match_multisig): - print_error("cannot find address in input script", bh2u(_bytes)) + print_error("cannot find address in input script", bh2u(s)) return x_pubkeys = [bh2u(x[1]) for x in dec2[1:-2]] pubkeys = [safe_parse_pubkey(x) for x in x_pubkeys]