Fix for wallet restore when offline

This commit is contained in:
bkkcoins 2012-09-20 15:30:08 +07:00
parent 83bb644135
commit af750d9363
1 changed files with 3 additions and 0 deletions

View File

@ -251,6 +251,8 @@ if __name__ == '__main__':
print "Recovery successful"
else:
print_error("Warning: Found no history for this wallet")
else:
wallet.synchronize()
wallet.fill_addressbook()
wallet.save()
print_error("Wallet saved in '" + wallet.path)
@ -413,6 +415,7 @@ if __name__ == '__main__':
wallet.save()
elif cmd in [ 'addresses']:
for addr in wallet.all_addresses():
if options.show_all or not wallet.is_change(addr):