Skip to content
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

test(sync): Test case where bad header is set as sync target #76

Merged
merged 3 commits into from
Jul 14, 2023

Conversation

renaynay
Copy link
Member

@renaynay renaynay commented Jul 10, 2023

Implement test for the case where a bad header is set as a sync target and ensure that syncer can discard and recover from it.

@renaynay
Copy link
Member Author

Okay the test is flakey - i need to convert to draft

@renaynay renaynay marked this pull request as draft July 11, 2023 19:21
github-merge-queue bot pushed a commit to celestiaorg/celestia-node that referenced this pull request Jul 11, 2023
This PR disables skipping verification and accepts all the incoming
non-adjacent headers. These headers will later be verified via adjacent
verification and rejected if invalid.

Test that proves that Syncer rejects and continues to work with a fault
header: celestiaorg/go-header#76

Potential outcomes of doing so:
celestiaorg/go-header#79

Additionally, the PR reverts the genesis hash change to the hash
pointing to height 1.

Supersedes #2449, which became zombie

---------

Co-authored-by: rene <[email protected]>
@renaynay renaynay marked this pull request as ready for review July 12, 2023 08:52
github-merge-queue bot pushed a commit to celestiaorg/celestia-node that referenced this pull request Jul 12, 2023
This PR disables skipping verification and accepts all the incoming
non-adjacent headers. These headers will later be verified via adjacent
verification and rejected if invalid.

Test that proves that Syncer rejects and continues to work with a fault
header: celestiaorg/go-header#76

Potential outcomes of doing so:
celestiaorg/go-header#79

Additionally, the PR reverts the genesis hash change to the hash
pointing to height 1.

Supersedes #2449, which became zombie

---------

Co-authored-by: rene <[email protected]>
@renaynay renaynay requested a review from tzdybal July 12, 2023 13:58
Copy link
Member

@Wondertan Wondertan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

@renaynay renaynay merged commit 87ab66e into celestiaorg:main Jul 14, 2023
0semter0 pushed a commit to 0semter0/celestia-node that referenced this pull request Aug 12, 2024
This PR disables skipping verification and accepts all the incoming
non-adjacent headers. These headers will later be verified via adjacent
verification and rejected if invalid.

Test that proves that Syncer rejects and continues to work with a fault
header: celestiaorg/go-header#76

Potential outcomes of doing so:
celestiaorg/go-header#79

Additionally, the PR reverts the genesis hash change to the hash
pointing to height 1.

Supersedes #2449, which became zombie

---------

Co-authored-by: rene <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants