Skip to content

Conversation

@AvivYossef-starkware
Copy link
Contributor

No description provided.

@reviewable-StarkWare
Copy link

This change is Reviewable

Copy link
Contributor Author

AvivYossef-starkware commented Dec 30, 2025

@AvivYossef-starkware AvivYossef-starkware force-pushed the aviv/refacor_rpc_state_reader_to_compue_the_compiled_class_hashes branch from 4840bd7 to 393f1fb Compare December 30, 2025 15:26
@AvivYossef-starkware AvivYossef-starkware force-pushed the aviv/fetch_setup_of_virtual_block_executor_concurrently branch from 5312554 to 731f5de Compare December 31, 2025 14:36
@AvivYossef-starkware AvivYossef-starkware force-pushed the aviv/refacor_rpc_state_reader_to_compue_the_compiled_class_hashes branch from 393f1fb to b7e8194 Compare December 31, 2025 14:36
@AvivYossef-starkware AvivYossef-starkware force-pushed the aviv/fetch_setup_of_virtual_block_executor_concurrently branch from 731f5de to b6c4c9b Compare December 31, 2025 14:39
@AvivYossef-starkware AvivYossef-starkware force-pushed the aviv/refacor_rpc_state_reader_to_compue_the_compiled_class_hashes branch 2 times, most recently from 078c1d2 to 37f3cf2 Compare January 1, 2026 07:55
@AvivYossef-starkware AvivYossef-starkware force-pushed the aviv/fetch_setup_of_virtual_block_executor_concurrently branch from b6c4c9b to e4db4a2 Compare January 1, 2026 07:55
@graphite-app graphite-app bot changed the base branch from aviv/fetch_setup_of_virtual_block_executor_concurrently to graphite-base/11302 January 1, 2026 15:25
@AvivYossef-starkware AvivYossef-starkware force-pushed the aviv/refacor_rpc_state_reader_to_compue_the_compiled_class_hashes branch from 37f3cf2 to 5b82bfd Compare January 1, 2026 17:03
@AvivYossef-starkware AvivYossef-starkware changed the base branch from graphite-base/11302 to aviv/fetch_setup_of_virtual_block_executor_concurrently January 1, 2026 17:03
@AvivYossef-starkware AvivYossef-starkware force-pushed the aviv/fetch_setup_of_virtual_block_executor_concurrently branch from d76b6ad to 6b263bc Compare January 2, 2026 07:18
@AvivYossef-starkware AvivYossef-starkware force-pushed the aviv/refacor_rpc_state_reader_to_compue_the_compiled_class_hashes branch from 5b82bfd to 29c4a84 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 2 files and all commit messages, and made 4 comments.
Reviewable status: all files reviewed, 4 unresolved discussions (waiting on @AvivYossef-starkware and @noaov1).


crates/blockifier_reexecution/src/state_reader/rpc_state_reader.rs line 164 at r2 (raw file):

    /// Use the default implementation of get_compiled_class_hash_v2.
    /// Which compute the hash.

This doesn't mean much to people who don't have the context.
Why not keep this dockstring as it was?

Code quote:

    /// Use the default implementation of get_compiled_class_hash_v2.
    /// Which compute the hash.

crates/blockifier_reexecution/src/state_reader/rpc_state_reader.rs line 292 at r2 (raw file):

        let mut vc = VersionedConstants::get(&self.get_starknet_version()?)?.clone();
        // The rpc state reader does not support casm hash migration, which requires compiled class
        // hashes. .

Suggestion:

        // Casm hash migration is not supported. It requires compiled class hashes, and the RPC state reader does not have them.

crates/blockifier_reexecution/src/state_reader/rpc_state_reader.rs line 333 at r2 (raw file):

    /// Get the commitment state diff of the current block.
    /// Notice: we ignore migrated_compiled_classes.

Suggestion:

    /// Get the commitment state diff of the current block.
    /// Note: the commitment state diff does not include migrated_compiled_classes.

crates/blockifier_reexecution/src/state_reader/rpc_state_reader.rs line 164 at r2 (raw file):

    /// need to be migrated from v1 to v2 format.
    /// In reexecution we use a dummy value for both get_compiled_class_hash and
    /// get_compiled_class_hash_v2, to avoid the migration process.

Why is this no longer true?

Code quote:

    /// Returns a dummy compiled class hash for reexecution purposes.
    ///
    /// This method is required since v0.14.1 for checking if compiled class hashes
    /// need to be migrated from v1 to v2 format.
    /// In reexecution we use a dummy value for both get_compiled_class_hash and
    /// get_compiled_class_hash_v2, to avoid the migration process.

@AvivYossef-starkware AvivYossef-starkware force-pushed the aviv/fetch_setup_of_virtual_block_executor_concurrently branch from 6b263bc to 73f5b9d Compare January 6, 2026 08:20
@AvivYossef-starkware AvivYossef-starkware force-pushed the aviv/refacor_rpc_state_reader_to_compue_the_compiled_class_hashes branch from 29c4a84 to 34ccb7e Compare January 6, 2026 08:20
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 4 comments.
Reviewable status: all files reviewed, 4 unresolved discussions (waiting on @avi-starkware and @noaov1).


crates/blockifier_reexecution/src/state_reader/rpc_state_reader.rs line 164 at r2 (raw file):

Previously, avi-starkware (Avi Cohen) wrote…

Why is this no longer true?

since now it is unimplemented for the get_compiled_class_hash
and returns the actual v2 hash


crates/blockifier_reexecution/src/state_reader/rpc_state_reader.rs line 164 at r2 (raw file):

Previously, avi-starkware (Avi Cohen) wrote…

This doesn't mean much to people who don't have the context.
Why not keep this dockstring as it was?

Since now it does not return the same value as the get compiled hash, which is unimplemented.
It just computes it


crates/blockifier_reexecution/src/state_reader/rpc_state_reader.rs line 292 at r2 (raw file):

        let mut vc = VersionedConstants::get(&self.get_starknet_version()?)?.clone();
        // The rpc state reader does not support casm hash migration, which requires compiled class
        // hashes. .

Done.


crates/blockifier_reexecution/src/state_reader/rpc_state_reader.rs line 333 at r2 (raw file):

    /// Get the commitment state diff of the current block.
    /// Notice: we ignore migrated_compiled_classes.

Done.

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 reviewed 3 files and all commit messages, made 2 comments, and resolved 3 discussions.
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 164 at r2 (raw file):

Previously, AvivYossef-starkware wrote…

Since now it does not return the same value as the get compiled hash, which is unimplemented.
It just computes it

Let's remove the docstring if that is the case
(the function does exactly what its name says it does)

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.

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

@AvivYossef-starkware AvivYossef-starkware force-pushed the aviv/refacor_rpc_state_reader_to_compue_the_compiled_class_hashes branch from 34ccb7e to 97378aa Compare January 6, 2026 10:23
@AvivYossef-starkware AvivYossef-starkware force-pushed the aviv/fetch_setup_of_virtual_block_executor_concurrently branch from 73f5b9d to 99daea0 Compare January 6, 2026 10:23
@AvivYossef-starkware AvivYossef-starkware changed the base branch from aviv/fetch_setup_of_virtual_block_executor_concurrently to graphite-base/11302 January 6, 2026 14:44
@AvivYossef-starkware AvivYossef-starkware force-pushed the aviv/refacor_rpc_state_reader_to_compue_the_compiled_class_hashes branch from 97378aa to d3e5d61 Compare January 6, 2026 15:14
@graphite-app graphite-app bot changed the base branch from graphite-base/11302 to main January 6, 2026 15:14
@graphite-app
Copy link

graphite-app bot commented Jan 6, 2026

Merge activity

  • Jan 6, 3:14 PM UTC: Graphite rebased this pull request, because this pull request is set to merge when ready.

@AvivYossef-starkware AvivYossef-starkware force-pushed the aviv/refacor_rpc_state_reader_to_compue_the_compiled_class_hashes branch from d3e5d61 to da38f4f Compare January 7, 2026 08:14
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 1 file and resolved 1 discussion.
Reviewable status: all files reviewed (commit messages unreviewed), 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 all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @noaov1).

@AvivYossef-starkware AvivYossef-starkware force-pushed the aviv/refacor_rpc_state_reader_to_compue_the_compiled_class_hashes branch from da38f4f to 75355c7 Compare January 7, 2026 08:32
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 1 file and all commit messages.
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 7, 2026
Merged via the queue into main with commit 8900446 Jan 7, 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