Merge pull request #3146 from SomberNight/xtype_ledger_segwit

fix xtype for ledger native segwit
This commit is contained in:
ThomasV 2017-10-29 14:41:34 +01:00 committed by GitHub
commit 7b1c5c27a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ class Ledger_Client():
#self.handler.show_message("Computing master public key")
try:
if (os.getenv("LEDGER_NATIVE_SEGWIT") is not None) and self.supports_native_segwit():
xtype = 'segwit'
xtype = 'p2wpkh'
elif bip32_path.startswith("m/49'/"):
if not self.supports_segwit():
raise Exception("Firmware version too old for Segwit support. Please update at https://www.ledgerwallet.com")