electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit b379a14cd2db3b007ab3045ff31de33a645ced1d
parent 17fa611b8084e1dda4666b83eba501aeb66cc62a
Author: ThomasV <thomasv@gitorious>
Date:   Thu, 13 Mar 2014 10:42:39 +0100

guess seed_version on old wallets

Diffstat:
Mlib/wallet.py | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/lib/wallet.py b/lib/wallet.py @@ -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)