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

[1.0.1 -> main] Add unit tests to verify replay of blocks with bad QC data #766

Merged
merged 16 commits into from
Sep 12, 2024

Conversation

linh2931
Copy link
Member

Forwards #759

Adds tests for QC validation during replay of blocks (implemented by #693).

Cases are tested:

  • Invalid QC claim (one that goes backward for example). Replay always fails.
  • Irrelevant QC (claims a block number other than the one claimed in the block header, or mismatching weak/strong claim). Replay always fails.
  • Bad QC (signature validation fails). Replay fails only if --force-all-checks is provided.

Resolves #727

@ericpassmore
Copy link
Contributor

Note:start
category: Tests
component: Internal
summary: Add unit tests to verify replay of blocks with bad QC data.
Note:end

@linh2931 linh2931 merged commit eeec4ed into main Sep 12, 2024
36 checks passed
@linh2931 linh2931 deleted the merge_replay_block_invariants_tests branch September 12, 2024 18:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add unit test to verify replay of blocks with bad QC data
5 participants