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 long UTXO sync on wallet import #154

Merged
merged 1 commit into from
Jul 12, 2023
Merged

Fix long UTXO sync on wallet import #154

merged 1 commit into from
Jul 12, 2023

Conversation

JSKitty
Copy link
Member

@JSKitty JSKitty commented Jul 12, 2023

Abstract

This is a tiny, last minute PR to fix a new bug in which imported wallets take a long time to synchronize their balance.

This sneaky bug came from f91f1ab, since MPW relied on the Block Count changing before each UTXO sync, if MPW had already synced the block count PRIOR to importing, then post-import MPW would wait until the NEXT block to finally sync the user's balance.

Now, MPW will force a UTXO refresh on all Imports, reliably syncing the balance regardless of if the wallet is Encrypted, or was newly Imported.

LGTM before v1.0.

@JSKitty JSKitty added the Bug This is either a bugfix (PR) or a bug (issue). label Jul 12, 2023
@JSKitty JSKitty requested review from Liquid369, Duddino, PalmTreeVI and a team July 12, 2023 01:11
@JSKitty JSKitty self-assigned this Jul 12, 2023
Copy link

@Liquid369 Liquid369 left a comment

Choose a reason for hiding this comment

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

tACK 6d19f07
Speedy as shizz now! LGTM GG

Copy link
Member

@Duddino Duddino left a comment

Choose a reason for hiding this comment

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

tACK

@JSKitty JSKitty merged commit 69be03e into master Jul 12, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This is either a bugfix (PR) or a bug (issue).
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants