tfix spending from multisig (broken by 8be777e8825b0f8c5892dcfa863a9868be96d64e) - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 0aee9bbbb0c6da74eefbfc9e50a1f2051eb57b5f DIR parent 84239e168be365434cfed4e22335b47890eca97c HTML Author: SomberNight <somber.night@protonmail.com> Date: Wed, 6 Dec 2017 16:02:40 +0100 fix spending from multisig (broken by 8be777e8825b0f8c5892dcfa863a9868be96d64e) Diffstat: M lib/transaction.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- DIR diff --git a/lib/transaction.py b/lib/transaction.py t@@ -631,9 +631,9 @@ class Transaction: def estimate_pubkey_size_for_txin(cls, txin): pubkeys = txin.get('pubkeys', []) x_pubkeys = txin.get('x_pubkeys', []) - if len(pubkeys) > 0: + if pubkeys and len(pubkeys) > 0: return cls.estimate_pubkey_size_from_x_pubkey(pubkeys[0]) - elif len(x_pubkeys) > 0: + elif x_pubkeys and len(x_pubkeys) > 0: return cls.estimate_pubkey_size_from_x_pubkey(x_pubkeys[0]) else: return 0x21 # just guess it is compressed