Skip to content

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

Merged
yanguoyu merged 2 commits intonervosnetwork:developfrom
yanguoyu:opt-light-sync
May 28, 2024
Merged

perf: Optimize synchronization logic for multiple wallets in the light client.#3160
yanguoyu merged 2 commits intonervosnetwork:developfrom
yanguoyu:opt-light-sync

Conversation

@yanguoyu
Copy link
Contributor

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

silySuper commented May 27, 2024

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

@silySuper
Copy link

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
Contributor 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
@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 <keithwhisper@gmail.com>
@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