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

Perform full sync of app on-chain wallet on startup if needed #2151

Merged
merged 4 commits into from
Mar 5, 2024

Conversation

luckysori
Copy link
Contributor

@luckysori luckysori commented Mar 5, 2024

Fixes #2130.

With the recent upgrade to bdk:1.0.0, we dropped existing wallet DBs in favour of a new format. This meant that a user would have to manually populate the new wallet DB to be able to see their wallet history and funds.

This is not a very good user experience, as at least some users would be surprised by this. This is why we have decided to execute a full wallet sync on startup if we find an old wallet DB. Once complete, we delete the old wallet DB since the data is irrelevant and we do not want to run a full sync on startup every time.

Recording 2024-03-05 at 08 09 01


The message is now updated based on the state of the background task 🎉 (Thanks, @holzeis).

@luckysori luckysori self-assigned this Mar 5, 2024
@luckysori luckysori enabled auto-merge March 5, 2024 08:54
@luckysori luckysori added this pull request to the merge queue Mar 5, 2024
@holzeis holzeis removed this pull request from the merge queue due to a manual request Mar 5, 2024
So that it doesn't clash with the file name we used to use before the
upgrade to `bdk:1.0.0`.
With the recent upgrade to `bdk:1.0.0`, we dropped existing wallet DBs
in favour of a new format. This meant that a user would have to
manually populate the new wallet DB to be able to see their wallet
history and funds.

This is not a very good user experience, as at least some users would
be surprised by this. This is why we have decided to execute a full
wallet sync on startup if we find an old wallet DB. Once complete, we
delete the old wallet DB since the data is irrelevant and we do not
want to run a full sync on startup every time.
- The padding was missing.
- I found the full sync text a little bit unclear given the complexity
  of the task. I've made it a lot more verbose, which I think is okay
  since this screen is currently only being used for this.
@luckysori luckysori added this pull request to the merge queue Mar 5, 2024
Merged via the queue into main with commit ddff388 Mar 5, 2024
20 checks passed
@luckysori luckysori deleted the feat/full-sync-if-needed branch March 5, 2024 11:52
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.

Help user to perfom a full sync after the bdk upgrade
2 participants