tfix wallet upgrade - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 8736cf8cd485495b95d7e669596107023ec4866d DIR parent afe39330dc2dda2c82294bff904a625cff7fb300 HTML Author: ThomasV <thomasv@electrum.org> Date: Sun, 21 Aug 2016 12:47:38 +0200 fix wallet upgrade Diffstat: M lib/storage.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) --- DIR diff --git a/lib/storage.py b/lib/storage.py t@@ -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) t@@ -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)