mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-03 12:30:07 +00:00
fixes: get_seed
This commit is contained in:
parent
5a3b80cfb2
commit
b9eb909554
1 changed files with 3 additions and 5 deletions
8
electrum
8
electrum
|
@ -232,15 +232,13 @@ if __name__ == '__main__':
|
|||
wallet.save_seed()
|
||||
wallet.create_accounts()
|
||||
wallet.synchronize()
|
||||
print_msg("Your wallet generation seed is: " + wallet.seed)
|
||||
print_msg("Your wallet generation seed is:\n\"%s\""% wallet.get_mnemonic(None))
|
||||
print_msg("Please keep it in a safe place; if you lose it, you will not be able to restore your wallet.")
|
||||
print_msg("Equivalently, your wallet seed can be stored and recovered with the following mnemonic code:")
|
||||
print_msg("\""+' '.join(mnemonic_encode(wallet.seed))+"\"")
|
||||
|
||||
print_msg("Wallet saved in '%s'"%wallet.storage.path)
|
||||
|
||||
if password:
|
||||
wallet.update_password(wallet.seed, None, password)
|
||||
wallet.update_password(None, password)
|
||||
|
||||
# terminate
|
||||
sys.exit(0)
|
||||
|
@ -268,7 +266,7 @@ if __name__ == '__main__':
|
|||
exit(1)
|
||||
else:
|
||||
password = None
|
||||
seed = wallet.seed
|
||||
seed = wallet.get_seed(None)
|
||||
else:
|
||||
password = None
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue