restore cmd: stop wallet threads
while "restore" does not wait for verifier to finish, this will at least ensure that whatever has been verified, gets persisted
This commit is contained in:
parent
a6fe73ad72
commit
8951dc3120
2
electrum
2
electrum
|
@ -161,6 +161,8 @@ def run_non_RPC(config):
|
|||
print_msg("Recovering wallet...")
|
||||
wallet.synchronize()
|
||||
wallet.wait_until_synchronized()
|
||||
wallet.stop_threads()
|
||||
# note: we don't wait for SPV
|
||||
msg = "Recovery successful" if wallet.is_found() else "Found no history for this wallet"
|
||||
else:
|
||||
msg = "This wallet was restored offline. It may contain more addresses than displayed."
|
||||
|
|
Loading…
Reference in New Issue