-
Notifications
You must be signed in to change notification settings - Fork 234
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
Extend the hardcoded assume_valid_target
to an array.
#4742
Open
eval-exec
wants to merge
5
commits into
nervosnetwork:develop
Choose a base branch
from
eval-exec:exec/asume-valid-target-array
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Extend the hardcoded assume_valid_target
to an array.
#4742
eval-exec
wants to merge
5
commits into
nervosnetwork:develop
from
eval-exec:exec/asume-valid-target-array
+254
−104
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Testing and doing a self-review... |
eval-exec
added
m:sync
module: ckb-sync
t:enhancement
Type: Feature, refactoring.
labels
Dec 5, 2024
eval-exec
changed the title
Extend the Hardcoded assume_valid_target to a Array
Extend the hardcoded Dec 5, 2024
assume_valid_target
to an array.
eval-exec
force-pushed
the
exec/asume-valid-target-array
branch
2 times, most recently
from
December 5, 2024 13:26
6e92790
to
6355923
Compare
eval-exec
changed the title
Extend the hardcoded
WIP] Extend the hardcoded Dec 5, 2024
assume_valid_target
to an array.assume_valid_target
to an array.
eval-exec
changed the title
WIP] Extend the hardcoded
[WIP] Extend the hardcoded Dec 5, 2024
assume_valid_target
to an array.assume_valid_target
to an array.
eval-exec
force-pushed
the
exec/asume-valid-target-array
branch
5 times, most recently
from
December 8, 2024 09:20
8b59dbc
to
93b6245
Compare
eval-exec
changed the title
[WIP] Extend the hardcoded
Extend the hardcoded Dec 8, 2024
assume_valid_target
to an array.assume_valid_target
to an array.
eval-exec
requested review from
doitian,
chenyukang,
zhangsoledad,
driftluo and
yangby-cryptape
December 8, 2024 09:21
eval-exec
force-pushed
the
exec/asume-valid-target-array
branch
from
December 8, 2024 09:22
93b6245
to
423720c
Compare
eval-exec
force-pushed
the
exec/asume-valid-target-array
branch
from
December 8, 2024 09:33
423720c
to
123eb75
Compare
eval-exec
force-pushed
the
exec/asume-valid-target-array
branch
from
December 21, 2024 07:39
123eb75
to
960bf1c
Compare
…onential growth target to lastest_assume_valid_target
Signed-off-by: Eval EXEC <execvy@gmail.com>
Signed-off-by: Eval EXEC <execvy@gmail.com>
eval-exec
force-pushed
the
exec/asume-valid-target-array
branch
from
December 21, 2024 07:57
960bf1c
to
24b975b
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What problem does this PR solve?
Resolve #4518.
Follow up #4254, this PR want to hardcode an array of default_valid_targets for ckb-sync.
What is changed and how it works?
This PR aims to replace the hardcoded DEFAULT_ASSUME_VALID_TARGET in CKB with an array. After CKB starts up, the header sync process currently takes over an hour to sync headers and search for the hardcoded target within them.
By changing this target to an array, which contains selected blocks from the main chain with exponentially increasing heights, we can improve the process. As soon as the header sync reaches the first block, it can immediately start using the first target in the array as the new synchronization target, allowing for more efficient block syncing after CKB startup.
What's Changed:
Related changes
Check List
Tests
Side effects
Release note