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(sweep): reload wallet info after scheduled sweep #530

Merged
merged 4 commits into from
Oct 5, 2022

Conversation

theborakompanioni
Copy link
Collaborator

@theborakompanioni theborakompanioni commented Oct 3, 2022

Fixes #251.

This PR is based on #526 - please merge #526 first.
This PR is based on #529 - please merge #529 first.

Before this PR, when a scheduled sweep operation ended successfully, the balance has not been updated.
After this PR, the balance will be updated as soon as the scheduler stops (either naturally or aborted).

How to test?

Invoke a scheduled sweep to external addresses and wait for completion.
After the scheduler finishes, the balance should be updated and show zero coins left (compare this to the old behaviour which would still display the balance you started with).
You can also observe the api requests in dev tools (F12) and verify that utxos are reloaded when the operation ends.

@theborakompanioni theborakompanioni added bug Something isn't working UI/UX Issue related to cosmetics, design, or user experience labels Oct 3, 2022
@theborakompanioni theborakompanioni self-assigned this Oct 3, 2022
@theborakompanioni theborakompanioni marked this pull request as ready for review October 3, 2022 15:50
@theborakompanioni theborakompanioni requested a review from a team October 3, 2022 15:50
@dergigi
Copy link
Contributor

dergigi commented Oct 3, 2022

I assume you mean based on #529, right?

@theborakompanioni
Copy link
Collaborator Author

I assume you mean based on #529, right?

Of course I mean #529 m|

Copy link
Contributor

@dergigi dergigi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Finally managed to test this successfully. I guess my regtest UTXOs were all messed up and the scheduler didn't like that.

Code looks good to me, tACK ✅

@dergigi dergigi merged commit 0757280 into master Oct 5, 2022
@dergigi dergigi deleted the update-info-after-scheduled-sweep branch October 5, 2022 11:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working UI/UX Issue related to cosmetics, design, or user experience
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update balance on Jam screen after stopping scheduled transactions
2 participants