Browse Source

fix: unresolved variable _bytes in transaction.parse_redeemScript()

seed_v14
SomberNight 7 years ago
parent
commit
902ec2dc69
  1. 2
      lib/transaction.py

2
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]

Loading…
Cancel
Save