mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-30 00:41:31 +00:00
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
1 changed files with 2 additions and 0 deletions
2
electrum
2
electrum
|
@ -161,6 +161,8 @@ def run_non_RPC(config):
|
||||||
print_msg("Recovering wallet...")
|
print_msg("Recovering wallet...")
|
||||||
wallet.synchronize()
|
wallet.synchronize()
|
||||||
wallet.wait_until_synchronized()
|
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"
|
msg = "Recovery successful" if wallet.is_found() else "Found no history for this wallet"
|
||||||
else:
|
else:
|
||||||
msg = "This wallet was restored offline. It may contain more addresses than displayed."
|
msg = "This wallet was restored offline. It may contain more addresses than displayed."
|
||||||
|
|
Loading…
Add table
Reference in a new issue