Browse Source

Merge pull request #2963 from SomberNight/unresolved_var_tx_parse_redeemScript

fix: unresolved variable _bytes in transaction.parse_redeemScript()
seed_v14
ThomasV 7 years ago
committed by GitHub
parent
commit
6c3b8af8d6
  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