-
Notifications
You must be signed in to change notification settings - Fork 3
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
Optimize light sync sync logic #352
Labels
enhancement
New feature or request
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is an optimization from discord https://discord.com/channels/956765352514183188/958262323397689354/1191544570048151623.
Currently, for the light client, every wallet has its sync progress, and when we switch to another wallet, the last choose wallet subscribe lock scripts will stop subscribing.
We can optimize the logic by only removing the lock scripts that the sync block number is less than the current min synced block number. Then if all of the wallets synced to the same block number, when we switch to another wallet, other wallets will continue to sync and not break the current wallet sync.
The text was updated successfully, but these errors were encountered: