From 65db826454604f4f2831ee4068b82fd7efd3dd98 Mon Sep 17 00:00:00 2001 From: Jochen Hoenicke Date: Wed, 16 Aug 2017 19:10:12 +0200 Subject: [PATCH] [TREZOR] show segwit addresses on TREZOR --- plugins/trezor/plugin.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/trezor/plugin.py b/plugins/trezor/plugin.py index c3e53dde4..b7df5b6fb 100644 --- a/plugins/trezor/plugin.py +++ b/plugins/trezor/plugin.py @@ -259,7 +259,9 @@ class TrezorCompatiblePlugin(HW_PluginBase): derivation = wallet.keystore.derivation address_path = "%s/%d/%d"%(derivation, change, index) address_n = client.expand_path(address_path) - client.get_address(self.get_coin_name(), address_n, True) + segwit = wallet.keystore.is_segwit() + script_type = self.types.SPENDP2SHWITNESS if segwit else self.types.SPENDADDRESS + client.get_address(self.get_coin_name(), address_n, True, script_type=script_type) def tx_inputs(self, tx, for_sig=False, segwit=False): inputs = []