1
0

call wallet.wait_until_synchronized before commands

This commit is contained in:
ThomasV
2015-10-29 05:01:06 +01:00
parent b70f8c888a
commit 079cb311ec
5 changed files with 16 additions and 18 deletions

View File

@@ -953,7 +953,7 @@ class ElectrumGui:
droid.dialogShow()
wallet.start_threads(network)
if action == 'restore':
wallet.restore(lambda x: None)
wallet.wait_until_synchronized()
else:
wallet.synchronize()
droid.dialogDismiss()

View File

@@ -1357,8 +1357,8 @@ class ElectrumGui():
dialog.show()
def recover_thread( wallet, dialog ):
wallet.restore(lambda x:x)
GObject.idle_add( dialog.destroy )
wallet.wait_until_synchronized()
GObject.idle_add(dialog.destroy)
thread.start_new_thread( recover_thread, ( wallet, dialog ) )
r = dialog.run()

View File

@@ -549,7 +549,7 @@ class InstallWizard(QDialog):
wallet.start_threads(self.network)
if action == 'restore':
self.waiting_dialog(lambda: wallet.restore(self.waiting_label.setText))
self.waiting_dialog(lambda: wallet.wait_until_synchronized(self.waiting_label.setText))
if self.network:
msg = _("Recovery successful") if wallet.is_found() else _("No transactions found for this seed")
else: