-
Notifications
You must be signed in to change notification settings - Fork 236
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
Merged
zhangsoledad
merged 6 commits into
nervosnetwork:develop
from
eval-exec:exec/asume-valid-target-array
Jan 9, 2025
Merged
Extend the hardcoded assume_valid_target
to an array.
#4742
zhangsoledad
merged 6 commits into
nervosnetwork:develop
from
eval-exec:exec/asume-valid-target-array
Jan 9, 2025
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... |
assume_valid_target
to an array.
6e92790
to
6355923
Compare
assume_valid_target
to an array.assume_valid_target
to an array.
assume_valid_target
to an array.assume_valid_target
to an array.
8b59dbc
to
93b6245
Compare
assume_valid_target
to an array.assume_valid_target
to an array.
93b6245
to
423720c
Compare
423720c
to
123eb75
Compare
960bf1c
to
24b975b
Compare
caa2a6a
to
c955861
Compare
…onential growth target to lastest_assume_valid_target
Signed-off-by: Eval EXEC <[email protected]>
Signed-off-by: Eval EXEC <[email protected]>
a5225d5
to
a02db5e
Compare
Signed-off-by: Eval EXEC <[email protected]>
a02db5e
to
2a98841
Compare
quake
approved these changes
Jan 9, 2025
@doitian @quake @zhangsoledad How about adding this PR to the release pipeline of |
zhangsoledad
approved these changes
Jan 9, 2025
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