Skip to content

Commit

Permalink
[TREZOR] show segwit addresses on TREZOR
Browse files Browse the repository at this point in the history
  • Loading branch information
jhoenicke committed Aug 29, 2017
1 parent ec0de56 commit 65db826
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugins/trezor/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,9 @@ def show_address(self, wallet, address):
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 = []
Expand Down

0 comments on commit 65db826

Please sign in to comment.