commit 8736cf8cd485495b95d7e669596107023ec4866d
parent afe39330dc2dda2c82294bff904a625cff7fb300
Author: ThomasV <thomasv@electrum.org>
Date: Sun, 21 Aug 2016 12:47:38 +0200
fix wallet upgrade
Diffstat:
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/lib/storage.py b/lib/storage.py
@@ -231,10 +231,14 @@ class WalletStorage(PrintError):
seed_version = self.get_seed_version()
if seed_version == OLD_SEED_VERSION or wallet_type == 'old':
seed = self.get('seed')
+ mpk = self.get('master_public_key')
d = {
'type': 'old',
- 'seed': seed
+ 'seed': seed,
+ 'mpk': mpk,
}
+ self.put('seed', None)
+ self.put('master_public_key', None)
self.put('wallet_type', 'standard')
self.put('keystore', d)
@@ -247,6 +251,9 @@ class WalletStorage(PrintError):
'xprv': xprv,
'seed': self.get('seed', '')
}
+ self.put('master_public_keys', None)
+ self.put('master_private_keys', None)
+ self.put('seed', None)
self.put('wallet_type', 'standard')
self.put('keystore', d)