1
0

common wallet.restore() method for GUIs

This commit is contained in:
ThomasV
2013-09-28 13:45:49 +02:00
parent 3d4a16b5c8
commit ecfe5e2590
5 changed files with 95 additions and 87 deletions

View File

@@ -215,12 +215,13 @@ if __name__ == '__main__':
wallet.init_seed( str(seed) )
wallet.save_seed()
wallet.create_accounts()
print_msg("Recovering wallet...")
network = Network(config)
network.start()
wallet.start_threads(network)
wallet.update()
print_msg("Recovering wallet...")
wallet.restore(lambda x: x)
if wallet.is_found():
print_msg("Recovery successful")
else: