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

Optimize light sync sync logic #352

Open
yanguoyu opened this issue Jan 22, 2024 · 1 comment
Open

Optimize light sync sync logic #352

yanguoyu opened this issue Jan 22, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@yanguoyu
Copy link

yanguoyu commented Jan 22, 2024

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.

@yanguoyu
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: 🚩Pre Release
Development

No branches or pull requests

2 participants