fix xtype for ledger native segwit
This commit is contained in:
parent
8467663448
commit
c6f085a711
|
@ -61,7 +61,7 @@ class Ledger_Client():
|
||||||
#self.handler.show_message("Computing master public key")
|
#self.handler.show_message("Computing master public key")
|
||||||
try:
|
try:
|
||||||
if (os.getenv("LEDGER_NATIVE_SEGWIT") is not None) and self.supports_native_segwit():
|
if (os.getenv("LEDGER_NATIVE_SEGWIT") is not None) and self.supports_native_segwit():
|
||||||
xtype = 'segwit'
|
xtype = 'p2wpkh'
|
||||||
elif bip32_path.startswith("m/49'/"):
|
elif bip32_path.startswith("m/49'/"):
|
||||||
if not self.supports_segwit():
|
if not self.supports_segwit():
|
||||||
raise Exception("Firmware version too old for Segwit support. Please update at https://www.ledgerwallet.com")
|
raise Exception("Firmware version too old for Segwit support. Please update at https://www.ledgerwallet.com")
|
||||||
|
|
Loading…
Reference in New Issue