commit c820423b00553913024ff8c2f54ac2fd5e3a9b89
parent 323188b9631affec42088023a3c5b95fbda0f59e
Author: ThomasV <thomasv@electrum.org>
Date: Wed, 31 Aug 2016 18:11:37 +0200
fix storage update for btchip
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/storage.py b/lib/storage.py
@@ -185,7 +185,7 @@ class WalletStorage(PrintError):
storage2.upgrade()
storage2.write()
result = [storage1.path, storage2.path]
- elif wallet_type in ['bip44', 'trezor', 'keepkey', 'ledger']:
+ elif wallet_type in ['bip44', 'trezor', 'keepkey', 'ledger', 'btchip']:
mpk = storage.get('master_public_keys')
for k in d.keys():
i = int(k)
@@ -218,6 +218,7 @@ class WalletStorage(PrintError):
def convert_wallet_type(self):
wallet_type = self.get('wallet_type')
+ if wallet_type == 'btchip': wallet_type = 'ledger'
if self.get('keystore') or self.get('x1/') or wallet_type=='imported':
return False
assert not self.requires_split()