mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-23 17:47:31 +00:00
fix CLI restore
This commit is contained in:
parent
39a85767a3
commit
02eece2c4c
1 changed files with 10 additions and 2 deletions
12
electrum
12
electrum
|
@ -259,7 +259,15 @@ if __name__ == '__main__':
|
||||||
wallet.seed = str(seed)
|
wallet.seed = str(seed)
|
||||||
wallet.init_mpk( wallet.seed )
|
wallet.init_mpk( wallet.seed )
|
||||||
if not options.offline:
|
if not options.offline:
|
||||||
|
|
||||||
|
interface = Interface(config)
|
||||||
|
interface.start()
|
||||||
|
wallet.interface = interface
|
||||||
WalletSynchronizer(wallet, config).start()
|
WalletSynchronizer(wallet, config).start()
|
||||||
|
|
||||||
|
verifier = WalletVerifier(interface, config)
|
||||||
|
wallet.set_verifier(verifier)
|
||||||
|
|
||||||
print "Recovering wallet..."
|
print "Recovering wallet..."
|
||||||
wallet.up_to_date_event.clear()
|
wallet.up_to_date_event.clear()
|
||||||
wallet.up_to_date = False
|
wallet.up_to_date = False
|
||||||
|
@ -267,12 +275,12 @@ if __name__ == '__main__':
|
||||||
if wallet.is_found():
|
if wallet.is_found():
|
||||||
print "Recovery successful"
|
print "Recovery successful"
|
||||||
else:
|
else:
|
||||||
print_error("Warning: Found no history for this wallet")
|
print "Warning: Found no history for this wallet"
|
||||||
else:
|
else:
|
||||||
wallet.synchronize()
|
wallet.synchronize()
|
||||||
wallet.fill_addressbook()
|
wallet.fill_addressbook()
|
||||||
wallet.save()
|
wallet.save()
|
||||||
print_error("Wallet saved in '" + wallet.path)
|
print "Wallet saved in '%s'"%wallet.config.path
|
||||||
else:
|
else:
|
||||||
wallet.new_seed(None)
|
wallet.new_seed(None)
|
||||||
wallet.init_mpk( wallet.seed )
|
wallet.init_mpk( wallet.seed )
|
||||||
|
|
Loading…
Add table
Reference in a new issue