Skip to content

blockifier: get proof_facts_length from tx#11998

Merged
avivg-starkware merged 1 commit intomain-v0.14.2from
avivg/blockifer/get_proof_facts_len_from_tx
Jan 28, 2026
Merged

blockifier: get proof_facts_length from tx#11998
avivg-starkware merged 1 commit intomain-v0.14.2from
avivg/blockifer/get_proof_facts_len_from_tx

Conversation

@avivg-starkware
Copy link
Contributor

No description provided.

@avivg-starkware avivg-starkware marked this pull request as ready for review January 26, 2026 13:40
@reviewable-StarkWare
Copy link

This change is Reviewable

Copy link
Contributor Author

avivg-starkware commented Jan 26, 2026

@avivg-starkware avivg-starkware force-pushed the avivg/blockifier/add_proof_facts_let_to_tx_params branch from 18019c2 to fcaf8e0 Compare January 27, 2026 10:01
@avivg-starkware avivg-starkware force-pushed the avivg/blockifer/get_proof_facts_len_from_tx branch from ebbbd61 to 36df384 Compare January 27, 2026 10:01
@avivg-starkware avivg-starkware force-pushed the avivg/blockifier/add_proof_facts_let_to_tx_params branch from fcaf8e0 to dbba779 Compare January 27, 2026 10:17
@avivg-starkware avivg-starkware force-pushed the avivg/blockifer/get_proof_facts_len_from_tx branch 2 times, most recently from 0c7a7d5 to f1ae88f Compare January 27, 2026 10:21
@avivg-starkware avivg-starkware force-pushed the avivg/blockifier/add_proof_facts_let_to_tx_params branch from dbba779 to 0a034a9 Compare January 27, 2026 10:21
@avivg-starkware avivg-starkware force-pushed the avivg/blockifer/get_proof_facts_len_from_tx branch from f1ae88f to df6a7d6 Compare January 27, 2026 10:45
@avivg-starkware avivg-starkware force-pushed the avivg/blockifier/add_proof_facts_let_to_tx_params branch from 0a034a9 to a9a2230 Compare January 27, 2026 10:45
@avivg-starkware avivg-starkware force-pushed the avivg/blockifer/get_proof_facts_len_from_tx branch from df6a7d6 to fffccef Compare January 27, 2026 11:31
@avivg-starkware avivg-starkware force-pushed the avivg/blockifier/add_proof_facts_let_to_tx_params branch from a9a2230 to 7c7f37e Compare January 27, 2026 11:31
@avivg-starkware avivg-starkware force-pushed the avivg/blockifer/get_proof_facts_len_from_tx branch from fffccef to 67805fa Compare January 27, 2026 11:37
@avivg-starkware avivg-starkware force-pushed the avivg/blockifier/add_proof_facts_let_to_tx_params branch 2 times, most recently from 2018def to d4e9ba8 Compare January 27, 2026 12:21
@avivg-starkware avivg-starkware force-pushed the avivg/blockifer/get_proof_facts_len_from_tx branch from 67805fa to 05d9bb4 Compare January 27, 2026 12:21
@avivg-starkware avivg-starkware force-pushed the avivg/blockifer/get_proof_facts_len_from_tx branch from 05d9bb4 to f55342b Compare January 27, 2026 13:36
@avivg-starkware avivg-starkware force-pushed the avivg/blockifier/add_proof_facts_let_to_tx_params branch 2 times, most recently from 456ccf5 to ec8a534 Compare January 27, 2026 13:44
@avivg-starkware avivg-starkware force-pushed the avivg/blockifer/get_proof_facts_len_from_tx branch from f55342b to e7947fd Compare January 27, 2026 13:44
@avivg-starkware avivg-starkware force-pushed the avivg/blockifier/add_proof_facts_let_to_tx_params branch from ec8a534 to f966a86 Compare January 27, 2026 14:04
@avivg-starkware avivg-starkware force-pushed the avivg/blockifer/get_proof_facts_len_from_tx branch from e7947fd to 58d50f5 Compare January 27, 2026 14:04
@avivg-starkware avivg-starkware force-pushed the avivg/blockifier/add_proof_facts_let_to_tx_params branch from f966a86 to 4311172 Compare January 28, 2026 08:34
@avivg-starkware avivg-starkware force-pushed the avivg/blockifer/get_proof_facts_len_from_tx branch from 58d50f5 to cf6e9d2 Compare January 28, 2026 08:34
@avivg-starkware avivg-starkware force-pushed the avivg/blockifier/add_proof_facts_let_to_tx_params branch from 4311172 to 98ff288 Compare January 28, 2026 09:54
@avivg-starkware avivg-starkware force-pushed the avivg/blockifer/get_proof_facts_len_from_tx branch 2 times, most recently from b376ab4 to 5b13127 Compare January 28, 2026 10:01
@avivg-starkware avivg-starkware force-pushed the avivg/blockifier/add_proof_facts_let_to_tx_params branch from 98ff288 to daa5428 Compare January 28, 2026 11:15
@avivg-starkware avivg-starkware force-pushed the avivg/blockifer/get_proof_facts_len_from_tx branch from 5b13127 to f2a33b3 Compare January 28, 2026 11:15
Copy link
Collaborator

@meship-starkware meship-starkware left a comment

Choose a reason for hiding this comment

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

@meship-starkware reviewed 3 files and made 1 comment.
Reviewable status: 3 of 4 files reviewed, 1 unresolved discussion (waiting on @avivg-starkware and @noaov1).


crates/blockifier/src/transaction/transactions_test.rs line 629 at r3 (raw file):

            // Skip impossible combination: proof_facts only exist in V3 transactions,
            // and V3 uses AllResourceBounds (L1Gas is legacy-only).
            ValidResourceBounds::L1Gas(_) => return,

I think we should panic here; no test should cover this case.

Code quote:

            // Skip impossible combination: proof_facts only exist in V3 transactions,
            // and V3 uses AllResourceBounds (L1Gas is legacy-only).
            ValidResourceBounds::L1Gas(_) => return,

Copy link
Collaborator

@meship-starkware meship-starkware left a comment

Choose a reason for hiding this comment

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

@meship-starkware reviewed 1 file and all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @avivg-starkware and @noaov1).

@avivg-starkware avivg-starkware force-pushed the avivg/blockifer/get_proof_facts_len_from_tx branch from f2a33b3 to 77d0fd0 Compare January 28, 2026 12:54
@avivg-starkware avivg-starkware force-pushed the avivg/blockifier/add_proof_facts_let_to_tx_params branch from daa5428 to 9de48e0 Compare January 28, 2026 12:54
@avivg-starkware avivg-starkware force-pushed the avivg/blockifer/get_proof_facts_len_from_tx branch from 77d0fd0 to 92eef52 Compare January 28, 2026 13:25
@avivg-starkware avivg-starkware force-pushed the avivg/blockifier/add_proof_facts_let_to_tx_params branch from 9de48e0 to 1303a29 Compare January 28, 2026 13:25
Copy link
Contributor Author

@avivg-starkware avivg-starkware left a comment

Choose a reason for hiding this comment

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

@avivg-starkware made 1 comment.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @meship-starkware and @noaov1).


crates/blockifier/src/transaction/transactions_test.rs line 629 at r3 (raw file):

Previously, meship-starkware (Meshi Peled) wrote…

I think we should panic here; no test should cover this case.

I used return here so the parametrized test skips an invalid combination (proof_facts + L1Gas) that can’t occur in production. If we panic!/unreachable!, this specific generated case will fail the suite even though it’s not a meaningful scenario to test.

@avivg-starkware avivg-starkware changed the base branch from avivg/blockifier/add_proof_facts_let_to_tx_params to graphite-base/11998 January 28, 2026 14:45
@avivg-starkware avivg-starkware force-pushed the avivg/blockifer/get_proof_facts_len_from_tx branch from 92eef52 to 3c253cb Compare January 28, 2026 14:45
@avivg-starkware avivg-starkware changed the base branch from graphite-base/11998 to main-v0.14.2 January 28, 2026 14:45
Copy link
Collaborator

@meship-starkware meship-starkware left a comment

Choose a reason for hiding this comment

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

@meship-starkware resolved 1 discussion.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @noaov1).

@avivg-starkware avivg-starkware added this pull request to the merge queue Jan 28, 2026
Merged via the queue into main-v0.14.2 with commit 0d7b8bd Jan 28, 2026
31 of 51 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Jan 30, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants