Browse Source

wallet_db: clarify hww types in old upgrades

There is no point in adding new hww types to these lists every time support for a new hww is added.
These upgrades got released in 2.7.0 and any hw types added after are unrelated.

reverted to just-after last relevant change:
c820423b00
patch-4
SomberNight 3 years ago
parent
commit
cbc69742b9
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 6
      electrum/wallet_db.py

6
electrum/wallet_db.py

@ -129,7 +129,8 @@ class WalletDB(JsonDB):
data2['suffix'] = 'imported'
result = [data1, data2]
elif wallet_type in ['bip44', 'trezor', 'keepkey', 'ledger', 'btchip', 'digitalbitbox', 'safe_t']:
# note: do not add new hardware types here, this code is for converting legacy wallets
elif wallet_type in ['bip44', 'trezor', 'keepkey', 'ledger', 'btchip']:
mpk = self.get('master_public_keys')
for k in d.keys():
i = int(k)
@ -258,7 +259,8 @@ class WalletDB(JsonDB):
self.put('wallet_type', 'standard')
self.put('keystore', d)
elif wallet_type in ['trezor', 'keepkey', 'ledger', 'digitalbitbox', 'safe_t']:
# note: do not add new hardware types here, this code is for converting legacy wallets
elif wallet_type in ['trezor', 'keepkey', 'ledger']:
xpub = xpubs["x/0'"]
derivation = self.get('derivation', bip44_derivation(0))
d = {

Loading…
Cancel
Save