Skip to content

Conversation

@lev-starkware
Copy link
Contributor

No description provided.

@reviewable-StarkWare
Copy link

This change is Reviewable

@lev-starkware lev-starkware force-pushed the 01-14-blockifier_reexecution_merge_rpc_state_reader_into_state_reader branch 2 times, most recently from b2066c3 to 12d1764 Compare January 14, 2026 14:10
Copy link
Contributor

@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 partially reviewed 15 files and all commit messages, and made 4 comments.
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @ArniStarkware, @lev-starkware, and @noaov1).


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

            contract_class_mapping_dumper: Arc::new(Mutex::new(None)),
        }
    }

I think that is dead code, you can delete it, maybe in a later PR ( or TODO with my name )

Code quote:

impl Default for RpcStateReader {
    fn default() -> Self {
        let config = get_rpc_state_reader_config();
        Self {
            config,
            block_id: BlockId::Latest,
            retry_config: RetryConfig::default(),
            chain_id: ChainId::Mainnet,
            contract_class_mapping_dumper: Arc::new(Mutex::new(None)),
        }
    }

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

            contract_class_mapping_dumper: Arc::new(Mutex::new(None)),
        }
    }

You can delete it, I don't think it is used

Code quote:

    /// Creates an RpcStateReader for a specific block number.
    /// Used for simple cases without dump mode or retry customization.
    pub fn from_number(config: &RpcStateReaderConfig, block_number: BlockNumber) -> Self {
        Self {
            config: config.clone(),
            block_id: BlockId::Number(block_number),
            retry_config: RetryConfig::default(),
            chain_id: ChainId::Mainnet,
            contract_class_mapping_dumper: Arc::new(Mutex::new(None)),
        }
    }

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

            contract_class_mapping_dumper: Arc::new(Mutex::new(None)),
        }
    }

loock like it is used only in tests so you can move it to a test file

Code quote:

    /// Creates an RpcStateReader for the latest block.
    /// Used for simple cases without dump mode or retry customization.
    pub fn from_latest(config: &RpcStateReaderConfig) -> Self {
        Self {
            config: config.clone(),
            block_id: BlockId::Latest,
            retry_config: RetryConfig::default(),
            chain_id: ChainId::Mainnet,
            contract_class_mapping_dumper: Arc::new(Mutex::new(None)),
        }
    }

crates/blockifier_reexecution/Cargo.toml line 12 at r2 (raw file):

blockifier_regression_https_testing = []
cairo_native = ["blockifier/cairo_native"]
testing = []

why?

Code quote:

testing = []

@lev-starkware lev-starkware force-pushed the 01-14-blockifier_reexecution_merge_rpc_state_reader_into_state_reader branch from 12d1764 to 1c043f2 Compare January 14, 2026 14:52
Copy link
Contributor

@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 1 file and all commit messages, and resolved 1 discussion.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @ArniStarkware, @lev-starkware, and @noaov1).

@lev-starkware lev-starkware force-pushed the 01-14-blockifier_reexecution_merge_rpc_state_reader_into_state_reader branch from 1c043f2 to 332092a Compare January 14, 2026 18:07
Copy link
Contributor Author

@lev-starkware lev-starkware left a comment

Choose a reason for hiding this comment

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

@lev-starkware made 2 comments.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @ArniStarkware, @AvivYossef-starkware, and @noaov1).


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

Previously, AvivYossef-starkware wrote…

You can delete it, I don't think it is used

Done.


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

Previously, AvivYossef-starkware wrote…

loock like it is used only in tests so you can move it to a test file

Done.

Copy link
Contributor

@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 6 files and all commit messages, made 2 comments, and resolved 1 discussion.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @ArniStarkware and @noaov1).


crates/blockifier_reexecution/src/state_reader/rpc_state_reader_basic_test.rs line 0 at r4 (raw file):
I think renaming it to mock_rpc_state_reader_test or sone name which contains the word mock would be better


crates/blockifier_reexecution/src/state_reader/rpc_state_reader_test.rs line 4 at r1 (raw file):

///
/// This module contains:
/// - Mock-based unit tests that use mockito to test RPC methods in isolation

plz move it to the new test file

Code quote:

/// - Mock-based unit tests that use mockito to test RPC methods in isolation

@lev-starkware lev-starkware force-pushed the 01-12-blockifier_reexecution_move_rpc_state_reader_from_apollo_gateway_into branch from 97c8376 to 30596cb Compare January 15, 2026 09:39
@lev-starkware lev-starkware force-pushed the 01-14-blockifier_reexecution_merge_rpc_state_reader_into_state_reader branch 2 times, most recently from e4862fe to 8258a76 Compare January 15, 2026 13:13
@lev-starkware lev-starkware force-pushed the 01-12-blockifier_reexecution_move_rpc_state_reader_from_apollo_gateway_into branch from 30596cb to 014c72f Compare January 15, 2026 13:13
Copy link
Contributor

@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 and all commit messages, and resolved 1 discussion.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @ArniStarkware and @noaov1).

@lev-starkware lev-starkware changed the base branch from 01-12-blockifier_reexecution_move_rpc_state_reader_from_apollo_gateway_into to graphite-base/11717 January 18, 2026 11:27
@lev-starkware lev-starkware force-pushed the 01-14-blockifier_reexecution_merge_rpc_state_reader_into_state_reader branch from 8258a76 to 49ee3ea Compare January 18, 2026 11:27
@lev-starkware lev-starkware changed the base branch from graphite-base/11717 to main January 18, 2026 11:28
Copy link
Contributor Author

@lev-starkware lev-starkware left a comment

Choose a reason for hiding this comment

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

@lev-starkware reviewed 2 files and all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @ArniStarkware and @noaov1).

Copy link
Contributor

@TzahiTaub TzahiTaub left a comment

Choose a reason for hiding this comment

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

:lgtm:

@TzahiTaub reviewed 1 file and made 1 comment.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @ArniStarkware and @noaov1).

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.

5 participants