-
Notifications
You must be signed in to change notification settings - Fork 664
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(state-sync): add test case for forks of the sync block (#12698)
This adds a test that currently fails because the state sync block doesn't handle the case where the first sync block seen doesn't end up finalized. We add a drop_blocks_by_height() function to the builder that will have the network layer drop any block messages for the given height. The result of this is that the block producer for the sync block will start state syncing with that sync_hash, but no other nodes will ever see that block, so they'll all know about a different sync_hash. This test case relies on the fact that this block producer will need to state sync in that epoch. This happens to be true, but in the future it would be good to more explicitly define what shards will be tracked up front.
- Loading branch information
1 parent
869ed26
commit 3564f4b
Showing
3 changed files
with
173 additions
and
23 deletions.
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
Oops, something went wrong.