Skip to content

fix: Fix light client sync miss some tx. - #2992

Merged
yanguoyu merged 2 commits into
nervosnetwork:developfrom
yanguoyu:fix-light-sync
Jan 10, 2024
Merged

fix: Fix light client sync miss some tx.#2992
yanguoyu merged 2 commits into
nervosnetwork:developfrom
yanguoyu:fix-light-sync

Conversation

@yanguoyu

Copy link
Copy Markdown
Contributor

Refer to Magickbase/neuron-public-issues#329 (comment).
Additionally, I rename Connector to Synchronizer refer to https://github.com/nervosnetwork/neuron/pull/2965/files#r1412661113. For more clarity, Rename blockStartNumber to localSavedBlockNumber, rename blockEndNumber to syncedBlockNumber in the sync_progress table.

@yanguoyu
yanguoyu force-pushed the fix-light-sync branch 5 times, most recently from 2116e2f to e04879a Compare December 19, 2023 08:45
@yanguoyu

yanguoyu commented Dec 19, 2023

Copy link
Copy Markdown
Contributor Author

/package
Packaging for test is done in 7259426817. @yanguoyu

@yanguoyu

Copy link
Copy Markdown
Contributor Author

/package Packaging for test is done in 7259426817. @yanguoyu

This package always throws Last few GCs, I will check what causes this.

@yanguoyu

yanguoyu commented Dec 21, 2023

Copy link
Copy Markdown
Contributor Author

/package
Packaging for test is done in 7285258383. @yanguoyu

Comment thread packages/neuron-wallet/src/block-sync-renderer/sync/light-synchronizer.ts Outdated
1. Use `partial` and `delete` for set_scripts
2. Sync the next block number after all addresses are synced to the block number
3. Rename `blockStartNumber` to `localSavedBlockNumber`, rename `blockEndNumber` to `syncedBlockNumber`
@Keith-CY

Keith-CY commented Dec 29, 2023

Copy link
Copy Markdown
Contributor

/package
Packaging for test is done in 7353317097. @Keith-CY

@Keith-CY

Copy link
Copy Markdown
Contributor

Please have a review @homura @WhiteMinds @devchenyan @zhangyouxin

@Keith-CY
Keith-CY requested a review from zhangyouxin December 29, 2023 03:05
@silySuper

silySuper commented Jan 4, 2024

Copy link
Copy Markdown

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

@silySuper

Copy link
Copy Markdown

Neuron in windows can not sync for about two days,sync process can not change or alaways show '正在连接节点'.

@yanguoyu
yanguoyu added this pull request to the merge queue Jan 10, 2024
Merged via the queue into nervosnetwork:develop with commit 5f9f767 Jan 10, 2024
@yanguoyu
yanguoyu deleted the fix-light-sync branch January 10, 2024 01:25
yanguoyu added a commit to yanguoyu/neuron that referenced this pull request Mar 14, 2024
* refactor: Rename connector to synchronizer

* fix: fix light sync logic

1. Use `partial` and `delete` for set_scripts
2. Sync the next block number after all addresses are synced to the block number
3. Rename `blockStartNumber` to `localSavedBlockNumber`, rename `blockEndNumber` to `syncedBlockNumber`
@Keith-CY Keith-CY mentioned this pull request Mar 14, 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