git://git.novaco.in
/
electrum-nvc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
17fa611
)
guess seed_version on old wallets
author
ThomasV
<thomasv@gitorious>
Thu, 13 Mar 2014 09:42:39 +0000 (10:42 +0100)
committer
ThomasV
<thomasv@gitorious>
Thu, 13 Mar 2014 09:42:39 +0000 (10:42 +0100)
lib/wallet.py
patch
|
blob
|
history
diff --git
a/lib/wallet.py
b/lib/wallet.py
index
fa0bc6a
..
a052b39
100644
(file)
--- 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)