-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix syncing issues with ASB XMR wallet during startup #1426
base: master
Are you sure you want to change the base?
Conversation
(cherry picked from commit 4398fa5)
Thanks for the PR. Seems sensible to me. Please fix the clippy errors (see the failed test) before we can get this merged. |
Should we do this for the CLI as well? I'm not sure if the "swap-monitoring-wallet is recreated at each startup |
Any chance for a re-review? Thanks |
Me and delta1 both think we should save the wallet periodically instead of at certain states. (See the previous review) |
@binarybaron how should periodic saving be scheduled? On a regular cadence (every X minutes)? Or after triggered after events like transactions? Both? |
I have been encountering an issue where the monero wallet for the ASB will properly sync upon startup, and can perform its usual tasks, but it does not save this state. This means that when restarting the ASB program, the balance will be that of from BEFORE the last startup and sync, sometimes going back until it was first created, essentially erasing all progress.
This adds https://www.getmonero.org/resources/developer-guides/wallet-rpc.html#store as a method for the RPC client, allowing the ASB program to save the wallet's state periodically.