electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 923f988b86b8d46be8671d4051d97a323e569dbb
parent d71c9d5be3034bd41d5538284d7b79a495ff2bbb
Author: ThomasV <thomasv@electrum.org>
Date:   Mon, 24 Jul 2017 17:29:14 +0200

fix #2630

Diffstat:
Mlib/transaction.py | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/lib/transaction.py b/lib/transaction.py @@ -413,6 +413,7 @@ def parse_input(vds): if prevout_hash == '00'*32: d['type'] = 'coinbase' else: + d['x_pubkeys'] = [] d['pubkeys'] = [] d['signatures'] = {} d['address'] = None @@ -656,8 +657,8 @@ class Transaction: return push_script(redeem_script) elif _type == 'address': script += push_script(pubkeys[0]) - else: - raise TypeError('Unknown txin type', _type) + elif _type == 'unknown': + return txin['scriptSig'] return script @classmethod