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

perf: Optimize synchronization logic for multiple wallets in the light client. #3160

Merged
merged 2 commits into from
May 28, 2024

Conversation

yanguoyu
Copy link
Collaborator

Refer to Magickbase/neuron-public-issues#352

I added a threshold for different wallets that can sync simultaneously. If the block number difference between the synchronization block number of other wallets and the current wallet block number is not less than this threshold value, they can be synchronized together.

@silySuper
Copy link
Collaborator

silySuper commented May 27, 2024

/package
Packaging for test is done in 9248487380. @silySuper

@silySuper
Copy link
Collaborator

This pr means that when I change to wallet which block height is bigger than the current wallet and sync for a while,the lower wallet block height will sync also?I can not see this effect.This is my operation video.
https://we.tl/t-3YiWvKPEkr

@yanguoyu
Copy link
Collaborator Author

This pr means that when I change to wallet which block height is bigger than the current wallet and sync for a while,the lower wallet block height will sync also?I can not see this effect.This is my operation video. https://we.tl/t-3YiWvKPEkr

You may have misunderstood. When the current wallet synced block number is lower, after this current wallet reaches the other higher wallet's synced block height, they will sync simultaneously.

@yanguoyu yanguoyu added this pull request to the merge queue May 28, 2024
Merged via the queue into nervosnetwork:develop with commit 493d07b May 28, 2024
10 checks passed
@yanguoyu yanguoyu deleted the opt-light-sync branch May 28, 2024 04:25
yanguoyu added a commit to yanguoyu/neuron that referenced this pull request May 29, 2024
…t client. (nervosnetwork#3160)

perf: Optimize synchronization logic for multiple wallets in a light client node

Co-authored-by: Chen Yu <[email protected]>
@Keith-CY Keith-CY mentioned this pull request Aug 8, 2024
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.

4 participants