tguess seed_version on old wallets - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit b379a14cd2db3b007ab3045ff31de33a645ced1d DIR parent 17fa611b8084e1dda4666b83eba501aeb66cc62a HTML Author: ThomasV <thomasv@gitorious> Date: Thu, 13 Mar 2014 10:42:39 +0100 guess seed_version on old wallets Diffstat: M lib/wallet.py | 2 ++ 1 file changed, 2 insertions(+), 0 deletions(-) --- DIR diff --git a/lib/wallet.py b/lib/wallet.py t@@ -1813,6 +1813,8 @@ class Wallet(object): seed_version = NEW_SEED_VERSION if config.get('bip32') is True else OLD_SEED_VERSION else: seed_version = storage.get('seed_version') + if not seed_version: + seed_version = OLD_SEED_VERSION if len(storage.get('master_public_key')) == 128 else NEW_SEED_VERSION if seed_version == OLD_SEED_VERSION: return OldWallet(storage)