Skip to content

Commit

Permalink
wallet_db: clarify hww types in old upgrades
Browse files Browse the repository at this point in the history
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:
c820423
  • Loading branch information
SomberNight committed May 11, 2022
1 parent 7f876e4 commit cbc6974
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions electrum/wallet_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ def get_split_accounts(self):
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)
Expand Down Expand Up @@ -258,7 +259,8 @@ def _convert_wallet_type(self):
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 = {
Expand Down

0 comments on commit cbc6974

Please sign in to comment.