mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-31 09:21:39 +00:00
guess seed_version on old wallets
This commit is contained in:
parent
17fa611b80
commit
b379a14cd2
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue