Browse Source

Shows correct bech32 address on ledger

3.1
ken2812221 7 years ago
committed by GitHub
parent
commit
452d60033a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      plugins/ledger/ledger.py

3
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

Loading…
Cancel
Save