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] Handle block invariant checks during replay appropriately and in particular ensure --force-all-checks is respected #715

Merged
merged 14 commits into from
Sep 7, 2024

Conversation

linh2931
Copy link
Member

@linh2931 linh2931 commented Sep 6, 2024

Currently QC block extension and finality header extension are not verified during replay.

This PR performs all the basic checks of Legacy, Transition, and Proper Savanna blocks during replay. If --force-all-checks is specified, a complete QC validation is performed.

Resolves #693

@linh2931 linh2931 marked this pull request as draft September 6, 2024 14:42
@linh2931 linh2931 marked this pull request as ready for review September 6, 2024 15:15
@linh2931 linh2931 requested a review from heifner September 7, 2024 01:02
@ericpassmore
Copy link
Contributor

Note:start
category: Other
component: Internal
summary: Enhance checks for QC on blocks across block types Legacy, Transition, and Proper Savanna.
Note:end


// verify the QC proof against the claimed block
bsp->verify_qc(qc_proof);
return qc_proof;
}
Copy link
Member

Choose a reason for hiding this comment

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

Be explicit with optional type otherwise you don't get return value optimization

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks. Did not notice this before I pressed the green button. Will do a followup PR tomorrow.

Copy link
Member Author

Choose a reason for hiding this comment

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

@linh2931 linh2931 merged commit 9225beb into release/1.0 Sep 7, 2024
36 checks passed
@linh2931 linh2931 deleted the replay_force_checks_fix branch September 7, 2024 18:31
@ericpassmore ericpassmore added the bug The product is not working as was intended. label Sep 7, 2024
Copy link
Member

@arhag arhag left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The product is not working as was intended.
Projects
None yet
5 participants