offline restore

This commit is contained in:
thomasv 2013-04-16 15:17:32 +02:00
parent 8e86ee1a79
commit 8fcd782ff4
1 changed files with 2 additions and 1 deletions

View File

@ -246,8 +246,8 @@ if __name__ == '__main__':
wallet.init_seed( str(seed) )
wallet.save_seed()
interface = Interface(config)
if not options.offline:
interface = Interface(config)
if not interface.start(wait=True):
print_msg("Not connected, aborting.")
sys.exit(1)
@ -264,6 +264,7 @@ if __name__ == '__main__':
else:
print_msg("Warning: Found no history for this wallet")
else:
interface.start(wait=False)
wallet.synchronize()
wallet.fill_addressbook()
wallet.save()