commit 34e271594a9f306d1a850f175a041307a8bac935
parent ff85cdd5f770e2c4403f145ef32266bac6ad599b
Author: ThomasV <thomasv@electrum.org>
Date: Sat, 15 Oct 2016 13:57:55 +0200
skip trezor address check with multisig addresses (issue #1975)
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/plugins/trezor/plugin.py b/plugins/trezor/plugin.py
@@ -319,13 +319,13 @@ class TrezorCompatiblePlugin(HW_PluginBase):
txoutputtype.script_type = self.types.PAYTOOPRETURN
txoutputtype.op_return_data = address[2:]
elif _type == TYPE_ADDRESS:
- if change is not None:
+ addrtype, hash_160 = bc_address_to_hash_160(address)
+ if addrtype == 0 and change is not None:
address_path = "%s/%d/%d"%(derivation, change, index)
address_n = self.client_class.expand_path(address_path)
txoutputtype.address_n.extend(address_n)
else:
txoutputtype.address = address
- addrtype, hash_160 = bc_address_to_hash_160(address)
if addrtype == 0:
txoutputtype.script_type = self.types.PAYTOADDRESS
elif addrtype == 5: