commit 78338c74eb4e1b00cf77adbd89426096d3e990d6
parent 9ceaac63105c7344182528aa2a383a1395188889
Author: ThomasV <thomasv@electrum.org>
Date: Thu, 25 Jan 2018 15:50:42 +0100
Merge pull request #3757 from ken2812221/patch-1
Shows correct bech32 address on ledger
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/plugins/ledger/ledger.py b/plugins/ledger/ledger.py
@@ -463,8 +463,9 @@ class Ledger_KeyStore(Hardware_KeyStore):
address_path = self.get_derivation()[2:] + "/%d/%d"%sequence
self.handler.show_message(_("Showing address ..."))
segwit = Transaction.is_segwit_inputtype(txin_type)
+ segwitNative = txin_type == 'p2wpkh'
try:
- client.getWalletPublicKey(address_path, showOnScreen=True, segwit=segwit)
+ client.getWalletPublicKey(address_path, showOnScreen=True, segwit=segwit, segwitNative=segwitNative)
except BTChipException as e:
if e.sw == 0x6985: # cancelled by user
pass