Skip to content
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

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

pokkst
Copy link
Contributor

@pokkst pokkst commented Aug 13, 2023

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.

@pokkst pokkst changed the title Fix syncing issues with ASB wallet during startup Fix syncing issues with ASB XMR wallet during startup Aug 13, 2023
@binarybaron
Copy link
Collaborator

Thanks for the PR. Seems sensible to me. Please fix the clippy errors (see the failed test) before we can get this merged.

swap/src/protocol/alice/swap.rs Outdated Show resolved Hide resolved
@binarybaron
Copy link
Collaborator

Should we do this for the CLI as well? I'm not sure if the "swap-monitoring-wallet is recreated at each startup

@pokkst
Copy link
Contributor Author

pokkst commented Dec 16, 2023

Any chance for a re-review? Thanks

@binarybaron
Copy link
Collaborator

binarybaron commented Dec 16, 2023

Me and delta1 both think we should save the wallet periodically instead of at certain states. (See the previous review)

@ikmckenz
Copy link
Contributor

@binarybaron how should periodic saving be scheduled? On a regular cadence (every X minutes)? Or after triggered after events like transactions? Both?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants