-
Notifications
You must be signed in to change notification settings - Fork 997
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
Fix shard fork choice #1970
Merged
Merged
Fix shard fork choice #1970
Changes from 5 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
bb3c360
Handle the dependencies order of dataclass objects
hwwhww 43ef9aa
Make ShardLatestMessage per shard per validator
hwwhww 2da331a
Rename `test_on_shard_head.py` to `test_on_shard_block.py`
hwwhww f6b1fe6
Refactor tests and avoiding passing `shart_store` to helper functions
hwwhww 4dcf5e2
Add test case of different shards
hwwhww 33e56b5
Apply Terence's suggestion: refactor on_shard_block interface
hwwhww f6fd151
Merge branch 'dev' into shard-fork-choice-fix
hwwhww 5d388f7
Fix the conflict of #1971
hwwhww e3bbf3c
Merge branch 'dev' into shard-fork-choice-fix
hwwhww 6a9dd16
Merge branch 'dev' into shard-fork-choice-fix
hwwhww 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
There are no files selected for viewing
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
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
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
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
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.
I wonder if we should delete
assert shard_block.shard == shard
and simplify arguments todef on_shard_block(store: Store, signed_shard_block: SignedShardBlock) -> None:
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.
agreed
We should just derive the
shard
directly from theshard_block
and use the appropriateshard_store
from thestore