SomberNight
6 years ago
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
1 changed files with
0 additions and
8 deletions
-
electrum/wallet.py
|
|
@ -1836,14 +1836,6 @@ class Wallet(object): |
|
|
|
wallet_type = storage.get('wallet_type') |
|
|
|
WalletClass = Wallet.wallet_class(wallet_type) |
|
|
|
wallet = WalletClass(storage) |
|
|
|
# Convert hardware wallets restored with older versions of |
|
|
|
# Electrum to BIP44 wallets. A hardware wallet does not have |
|
|
|
# a seed and plugins do not need to handle having one. |
|
|
|
rwc = getattr(wallet, 'restore_wallet_class', None) |
|
|
|
if rwc and storage.get('seed', ''): |
|
|
|
storage.print_error("converting wallet type to " + rwc.wallet_type) |
|
|
|
storage.put('wallet_type', rwc.wallet_type) |
|
|
|
wallet = rwc(storage) |
|
|
|
return wallet |
|
|
|
|
|
|
|
@staticmethod |
|
|
|