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

Move btc wallet syncing in background #352

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

Conversation

altafan
Copy link
Collaborator

@altafan altafan commented Oct 8, 2024

Before this, when the server starts on bitcoin chain, it waits for the blockchain scanner to fully sync with the blockchain.

Then, when the wallet is creates/restores/unlocked, again the server waits for the wallet to be fully in sync.

This adds changes so that the chain syncing is done in the background and until the wallet is not in sync and unlocked, the app service generating rounds is not even started.

This also adds safeguard check on all btc wallet apis to make sure the wallet is ready before doing anything and prevent panics.

Closes #349.

Please @louisinger @tiero review this.

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.

arkd: panics on wallet balance
1 participant