From 34e271594a9f306d1a850f175a041307a8bac935 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Sat, 15 Oct 2016 13:57:55 +0200 Subject: [PATCH] skip trezor address check with multisig addresses (issue #1975) --- plugins/trezor/plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/trezor/plugin.py b/plugins/trezor/plugin.py index 02823880d..8d929f7b9 100644 --- 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: