Skip to content

starknet_patricia,starknet_committer: dont pass storage mut when not needed#12165

Open
nimrod-starkware wants to merge 1 commit intonimrod/parallel-reads/non-mut-getfrom
nimrod/parallel-reads/no-mut
Open

starknet_patricia,starknet_committer: dont pass storage mut when not needed#12165
nimrod-starkware wants to merge 1 commit intonimrod/parallel-reads/non-mut-getfrom
nimrod/parallel-reads/no-mut

Conversation

@nimrod-starkware
Copy link
Contributor

@nimrod-starkware nimrod-starkware commented Feb 1, 2026

Note

Low Risk
Signature-only refactor to relax mutability requirements with no logic changes; risk is limited to compile-time integration fallout or overlooked call sites.

Overview
Removes unnecessary mutable borrows of storage throughout original-skeleton-tree and Patricia traversal read paths by changing function signatures from &mut impl Storage/&mut MapStorage to &impl Storage/&MapStorage (e.g., create_original_skeleton_tree, fetch_nodes, get_roots_from_storage, facts traversal, and forest read_forest).

Updates all callers in facts/index DB readers, OS commitment-info generation, proof fetching, and tests to match the new immutability expectations, including minor test cleanup (dropping mut locals/params) and a TODO noting ForestReader could also move to &self.

Written by Cursor Bugbot for commit 16085da. This will update automatically on new commits. Configure here.

@reviewable-StarkWare
Copy link

This change is Reviewable

Copy link
Contributor Author

nimrod-starkware commented Feb 1, 2026

@chatgpt-codex-connector
Copy link

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

@nimrod-starkware nimrod-starkware self-assigned this Feb 1, 2026
@nimrod-starkware nimrod-starkware force-pushed the nimrod/parallel-reads/no-mut branch 2 times, most recently from 3a0da1d to 9416084 Compare February 1, 2026 09:24
@nimrod-starkware nimrod-starkware force-pushed the nimrod/parallel-reads/clone-for-cached-storage branch from fd8bae5 to 253a0f6 Compare February 1, 2026 09:24
@nimrod-starkware nimrod-starkware force-pushed the nimrod/parallel-reads/no-mut branch from 9416084 to 59d3f11 Compare February 1, 2026 09:29
@nimrod-starkware nimrod-starkware force-pushed the nimrod/parallel-reads/clone-for-cached-storage branch from 253a0f6 to 4bc0e71 Compare February 1, 2026 09:29
@nimrod-starkware nimrod-starkware force-pushed the nimrod/parallel-reads/clone-for-cached-storage branch from 4bc0e71 to af3028d Compare February 1, 2026 11:19
@nimrod-starkware nimrod-starkware force-pushed the nimrod/parallel-reads/no-mut branch from 59d3f11 to 511535e Compare February 1, 2026 11:19
@nimrod-starkware nimrod-starkware force-pushed the nimrod/parallel-reads/no-mut branch from 511535e to 30f2fe3 Compare February 2, 2026 08:36
@nimrod-starkware nimrod-starkware force-pushed the nimrod/parallel-reads/clone-for-cached-storage branch from af3028d to 0476bff Compare February 2, 2026 08:36
@nimrod-starkware nimrod-starkware force-pushed the nimrod/parallel-reads/clone-for-cached-storage branch from 0476bff to 36f7fd3 Compare February 3, 2026 13:08
@nimrod-starkware nimrod-starkware force-pushed the nimrod/parallel-reads/no-mut branch from 30f2fe3 to 65c3d46 Compare February 3, 2026 13:08
@nimrod-starkware nimrod-starkware force-pushed the nimrod/parallel-reads/no-mut branch from 9cfd0bf to 3d46c52 Compare February 5, 2026 08:27
@nimrod-starkware nimrod-starkware force-pushed the nimrod/parallel-reads/no-mut branch from 3d46c52 to 650849c Compare February 9, 2026 14:27
@nimrod-starkware nimrod-starkware force-pushed the nimrod/parallel-reads/clone-for-cached-storage branch from 630e3c7 to 188f78c Compare February 9, 2026 14:27
@nimrod-starkware nimrod-starkware force-pushed the nimrod/parallel-reads/clone-for-cached-storage branch from 188f78c to 50c6063 Compare February 9, 2026 15:13
@nimrod-starkware nimrod-starkware force-pushed the nimrod/parallel-reads/no-mut branch from 650849c to 0176a59 Compare February 9, 2026 15:13
@nimrod-starkware nimrod-starkware changed the base branch from nimrod/parallel-reads/clone-for-cached-storage to graphite-base/12165 February 10, 2026 08:44
@nimrod-starkware nimrod-starkware force-pushed the nimrod/parallel-reads/no-mut branch from 0176a59 to 9847b21 Compare February 10, 2026 08:44
@nimrod-starkware nimrod-starkware changed the base branch from graphite-base/12165 to nimrod/parallel-reads/non-mut-get February 10, 2026 08:44
Copy link
Contributor

@ArielElp ArielElp left a comment

Choose a reason for hiding this comment

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

:lgtm:

@ArielElp reviewed 12 files and all commit messages, and made 1 comment.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @nimrod-starkware).

Copy link
Collaborator

@dorimedini-starkware dorimedini-starkware left a comment

Choose a reason for hiding this comment

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

@dorimedini-starkware reviewed 14 files and all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @nimrod-starkware).

@nimrod-starkware nimrod-starkware force-pushed the nimrod/parallel-reads/no-mut branch from d902d2b to 48dd3a9 Compare February 17, 2026 07:13
@nimrod-starkware nimrod-starkware force-pushed the nimrod/parallel-reads/non-mut-get branch from 82c0e32 to 42bb057 Compare February 17, 2026 07:13
Copy link
Collaborator

@dorimedini-starkware dorimedini-starkware left a comment

Choose a reason for hiding this comment

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

@dorimedini-starkware reviewed 3 files and all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on nimrod-starkware).

@nimrod-starkware nimrod-starkware force-pushed the nimrod/parallel-reads/non-mut-get branch from 42bb057 to 8ee2dc3 Compare February 19, 2026 09:21
@nimrod-starkware nimrod-starkware force-pushed the nimrod/parallel-reads/no-mut branch from 48dd3a9 to 16085da Compare February 19, 2026 09:21
Copy link
Collaborator

@dorimedini-starkware dorimedini-starkware left a comment

Choose a reason for hiding this comment

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

@dorimedini-starkware reviewed 9 files and all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on nimrod-starkware).

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.

4 participants

Comments