-
Notifications
You must be signed in to change notification settings - Fork 1k
Deprecate some reorg-related CLI flags and read from spec
#9177
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
Open
chong-he
wants to merge
27
commits into
sigp:unstable
Choose a base branch
from
chong-he:cli-flags-reconcile
base: unstable
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
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
2614cba
delete reorg parent and head cli
chong-he edf9451
test
chong-he 8b277c0
delete reorg max cli flag
chong-he 8946f48
simplify test
chong-he fe70937
update cli help text
chong-he f33e33a
update book
chong-he 6d6cd17
test lint
chong-he 5dc993d
fix http reorg test
chong-he 9fc7249
fix error
chong-he 739472f
fix ef-test
chong-he 187ebff
put default
chong-he 1a053d3
revise
chong-he 71d0612
revise
chong-he 4373c19
remove reorg cutoff
chong-he d0c4682
Merge branch 'unstable' into cli-flags-reconcile
chong-he 11cd413
remove mut
chong-he 8521fb7
cli
chong-he ff00dd0
cli fmt and book
chong-he 652fef7
revise
chong-he 0ed9f25
fix test
chong-he 42cb94b
revise
chong-he f9b761b
cfg debug
chong-he 34793f2
test
chong-he 401b12e
fmt
chong-he 2f40297
add some asserts
chong-he a739c4a
simplify
chong-he 85f3f0a
reduce diff
chong-he File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's interesting that the tests still pass after deleting these. I was thinking we could inject them into the
mut specbelow? Maybe we should add more tests to cover these (possibly in a separate issue)Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it because the spec uses the default spec already:
let spec = ForkName::Fulu.make_genesis_spec(E::default_spec());so it will read from the spec?
I added someassert_eq!to make sure they are equal to the spec in the test, but they look a bit of redundant? 2f40297Edit: I removed it. I think I know what kind of tests you are looking for, like mutating the reorg_head_weight_threshold to a different value, and then add some tests to the results, that sort of tests