Fix for wallet restore when offline
This commit is contained in:
3
electrum
3
electrum
@@ -251,6 +251,8 @@ if __name__ == '__main__':
|
|||||||
print "Recovery successful"
|
print "Recovery successful"
|
||||||
else:
|
else:
|
||||||
print_error("Warning: Found no history for this wallet")
|
print_error("Warning: Found no history for this wallet")
|
||||||
|
else:
|
||||||
|
wallet.synchronize()
|
||||||
wallet.fill_addressbook()
|
wallet.fill_addressbook()
|
||||||
wallet.save()
|
wallet.save()
|
||||||
print_error("Wallet saved in '" + wallet.path)
|
print_error("Wallet saved in '" + wallet.path)
|
||||||
@@ -413,6 +415,7 @@ if __name__ == '__main__':
|
|||||||
wallet.save()
|
wallet.save()
|
||||||
|
|
||||||
elif cmd in [ 'addresses']:
|
elif cmd in [ 'addresses']:
|
||||||
|
|
||||||
for addr in wallet.all_addresses():
|
for addr in wallet.all_addresses():
|
||||||
if options.show_all or not wallet.is_change(addr):
|
if options.show_all or not wallet.is_change(addr):
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user