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: add pie validity check to prove block #383

Merged
merged 5 commits into from
Sep 25, 2024

Conversation

HermanObst
Copy link
Collaborator

Problem: We weren't performing validation checks on the PIEs we were generating.
Fix: Adds run_validity_checks() in our prove block tests

Copy link
Collaborator

@ftheirs ftheirs left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Collaborator

@notlesh notlesh left a comment

Choose a reason for hiding this comment

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

We should add this to execute_txs_and_run_os() so that it will be checked in our integration tests as well

.await
.map_err(debug_prove_error)
.expect("Block could not be proven");

assert!(pie.run_validity_checks().is_ok());
Copy link
Collaborator

Choose a reason for hiding this comment

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

Not a big deal, but an expect() with a clear message would be better

@HermanObst HermanObst merged commit 92542ec into main Sep 25, 2024
6 checks passed
@HermanObst HermanObst deleted the herman/add-pie-validity-check branch September 25, 2024 18:02
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.

3 participants