electrum

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

commit 25e411639355fce3588325c8f9170e222ccc2245
parent d0755698ce7e153a3c60d9c2b965f0ec9dc972f9
Author: ThomasV <thomasv@electrum.org>
Date:   Mon, 16 Jan 2017 10:06:28 +0100

do not crash tx.serialize if pubkeys are missing. fix #2113

Diffstat:
Mlib/transaction.py | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lib/transaction.py b/lib/transaction.py @@ -584,7 +584,9 @@ class Transaction: pubkeys = txin['x_pubkeys'] sig_list = ((sig + '01') if sig else NO_SIGNATURE for sig in x_signatures) script = ''.join(push_script(x) for x in sig_list) - if not p2sh: + if not pubkeys: + pass + elif not p2sh: x_pubkey = pubkeys[0] if x_pubkey is None: addrtype, h160 = bc_address_to_hash_160(txin['address'])