Skip to content

Conversation

@AvivYossef-starkware
Copy link
Contributor

No description provided.

Copy link
Contributor Author

AvivYossef-starkware commented Jan 1, 2026

@reviewable-StarkWare
Copy link

This change is Reviewable

@AvivYossef-starkware AvivYossef-starkware marked this pull request as ready for review January 1, 2026 17:04
Copy link
Contributor Author

@AvivYossef-starkware AvivYossef-starkware left a comment

Choose a reason for hiding this comment

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

@AvivYossef-starkware made 1 comment.
Reviewable status: 0 of 1 files reviewed, 1 unresolved discussion (waiting on @avi-starkware and @noaov1).


crates/blockifier_reexecution/src/state_reader/rpc_state_reader.rs line 257 at r1 (raw file):

                })?,
            );
        }

I tested it, and it is unnecessary when using rpc-v0.10, even for old blocks.

Code quote:

        if block_header_map.get("l2_gas_price").is_none() {
            // In old blocks, the l2_gas_price field is not present.
            block_header_map.insert(
                "l2_gas_price".to_string(),
                to_value(GasPricePerToken {
                    price_in_wei: 1_u8.into(),
                    price_in_fri: 1_u8.into(),
                })?,
            );
        }

@AvivYossef-starkware AvivYossef-starkware force-pushed the aviv/add_missing_block_header_fields branch from ab01f5b to 29fc954 Compare January 2, 2026 07:18
@AvivYossef-starkware AvivYossef-starkware force-pushed the aviv/refactor_get_block_header branch from e69ee23 to 0bd6454 Compare January 2, 2026 07:18
Copy link
Collaborator

@avi-starkware avi-starkware left a comment

Choose a reason for hiding this comment

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

@avi-starkware reviewed 1 file and all commit messages, and made 1 comment.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @AvivYossef-starkware and @noaov1).


crates/blockifier_reexecution/src/state_reader/rpc_state_reader.rs line 257 at r1 (raw file):

Previously, AvivYossef-starkware wrote…

I tested it, and it is unnecessary when using rpc-v0.10, even for old blocks.

Are you sure the l2_gas_price is unnecessary for old blocks? Why was it added in the first place if that is the case?

Copy link
Contributor Author

@AvivYossef-starkware AvivYossef-starkware left a comment

Choose a reason for hiding this comment

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

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


crates/blockifier_reexecution/src/state_reader/rpc_state_reader.rs line 257 at r1 (raw file):

Previously, avi-starkware (Avi Cohen) wrote…

Are you sure the l2_gas_price is unnecessary for old blocks? Why was it added in the first place if that is the case?

If I remember correctly, we didnt know that newer rpc version would solve it.
Look at blockheader.json
It's an old block and it has the default l2_gas_price

Copy link
Contributor Author

@AvivYossef-starkware AvivYossef-starkware left a comment

Choose a reason for hiding this comment

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

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

@AvivYossef-starkware AvivYossef-starkware force-pushed the aviv/add_missing_block_header_fields branch from 29fc954 to c95562f Compare January 6, 2026 08:20
@AvivYossef-starkware AvivYossef-starkware force-pushed the aviv/refactor_get_block_header branch from 0bd6454 to abcff6b Compare January 6, 2026 08:20
@AvivYossef-starkware AvivYossef-starkware changed the base branch from aviv/add_missing_block_header_fields to main January 6, 2026 09:24
Copy link
Collaborator

@avi-starkware avi-starkware left a comment

Choose a reason for hiding this comment

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

:lgtm:

@avi-starkware made 1 comment.
Reviewable status: 1 of 3 files reviewed, all discussions resolved (waiting on @noaov1).

@AvivYossef-starkware AvivYossef-starkware force-pushed the aviv/refactor_get_block_header branch from abcff6b to 1058db4 Compare January 6, 2026 10:23
Copy link
Contributor Author

@AvivYossef-starkware AvivYossef-starkware left a comment

Choose a reason for hiding this comment

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

@AvivYossef-starkware reviewed all commit messages.
Reviewable status: 1 of 3 files reviewed, all discussions resolved (waiting on @noaov1).

Copy link
Contributor Author

@AvivYossef-starkware AvivYossef-starkware left a comment

Choose a reason for hiding this comment

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

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

@AvivYossef-starkware AvivYossef-starkware added this pull request to the merge queue Jan 6, 2026
Merged via the queue into main with commit 8ba1455 Jan 6, 2026
16 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Jan 8, 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.

4 participants