-
Notifications
You must be signed in to change notification settings - Fork 85
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
Conversation
packages/neuron-wallet/src/block-sync-renderer/sync/light-synchronizer.ts
Outdated
Show resolved
Hide resolved
packages/neuron-wallet/src/block-sync-renderer/sync/light-synchronizer.ts
Outdated
Show resolved
Hide resolved
/package |
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. |
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. |
…t client. (nervosnetwork#3160) perf: Optimize synchronization logic for multiple wallets in a light client node Co-authored-by: Chen Yu <[email protected]>
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.