Skip to content

Conversation

@ArielElp
Copy link
Contributor

No description provided.

@reviewable-StarkWare
Copy link

This change is Reviewable

Copy link
Contributor Author

ArielElp commented Dec 23, 2025

This stack of pull requests is managed by Graphite. Learn more about stacking.

@ArielElp ArielElp force-pushed the ariel/enrich_layout_for_serialization branch from af9d87d to fb3bd7a Compare December 23, 2025 13:00
@ArielElp ArielElp force-pushed the ariel/move_layout_to_patricia_storage branch from bb2af59 to 32b7f4a Compare December 23, 2025 15:36
@ArielElp ArielElp force-pushed the ariel/enrich_layout_for_serialization branch 2 times, most recently from 3473676 to 9f2ba58 Compare December 24, 2025 08:50
@ArielElp ArielElp force-pushed the ariel/move_layout_to_patricia_storage branch from 32b7f4a to 597a809 Compare December 24, 2025 08:50
@ArielElp ArielElp force-pushed the ariel/enrich_layout_for_serialization branch from 9f2ba58 to 3d47fa4 Compare December 24, 2025 11:41
@ArielElp ArielElp force-pushed the ariel/move_layout_to_patricia_storage branch from 597a809 to 4487c12 Compare December 24, 2025 11:41
@ArielElp ArielElp force-pushed the ariel/enrich_layout_for_serialization branch from 3d47fa4 to 84d3218 Compare December 24, 2025 11:59
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, and made 1 comment.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @ArielElp and @yoavGrs).


crates/starknet_committer/src/db/facts_db/db.rs line 57 at r5 (raw file):

        let db_filled_node = Self::convert_node_data_and_leaf(filled_node);

        let key = db_filled_node.get_db_key(key_context, &db_filled_node.hash.0.to_bytes_be());

consider implementing a db_key_suffix method on FilledNode type(s),
and use it here and in the below implementation.
in this case the node index will be ignored of course but in general the DB key suffix can depend on it

Suggestion:

db_filled_node.get_db_key(key_context, &db_filled_node.db_key_suffix(node_index));

@ArielElp ArielElp force-pushed the ariel/enrich_layout_for_serialization branch from c6387bb to 3101833 Compare January 12, 2026 09:19
@ArielElp ArielElp force-pushed the ariel/move_layout_to_patricia_storage branch from 28d5db7 to c213f17 Compare January 12, 2026 09:19
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 1 file and all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @ArielElp and @yoavGrs).

@ArielElp ArielElp force-pushed the ariel/enrich_layout_for_serialization branch from 3101833 to d6d529c Compare January 12, 2026 11:21
Copy link
Contributor Author

@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.

@ArielElp made 2 comments.
Reviewable status: 2 of 3 files reviewed, 2 unresolved discussions (waiting on @dorimedini-starkware, @nimrod-starkware, and @yoavGrs).


crates/starknet_committer/src/db/facts_db/db.rs line 57 at r5 (raw file):

Previously, dorimedini-starkware wrote…

consider implementing a db_key_suffix method on FilledNode type(s),
and use it here and in the below implementation.
in this case the node index will be ignored of course but in general the DB key suffix can depend on it

There is suffix on FilledNode<L, HashOutput> that is actually only used in tests ATM, I think I'll refactor this at the top of the stack (originally I thought of removing suffix altogether, but maybe your suggestion is better)


crates/starknet_patricia/src/db_layout.rs line 79 at r4 (raw file):

Previously, nimrod-starkware wrote…

So you convert HashOutput to () in index layout and in facts layout keep as is?

yes (the into call on path_to_bottom was indeed superfluous, removed)

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 1 file and all commit messages, and made 1 comment.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @nimrod-starkware and @yoavGrs).


crates/starknet_committer/src/db/facts_db/db.rs line 57 at r5 (raw file):

Previously, ArielElp wrote…

There is suffix on FilledNode<L, HashOutput> that is actually only used in tests ATM, I think I'll refactor this at the top of the stack (originally I thought of removing suffix altogether, but maybe your suggestion is better)

ok, so can you add TODOs here and below to use the suffix method?
or, if the PR is already open, let me TAL and I'll "unblock" here

Copy link
Contributor

@nimrod-starkware nimrod-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:

@nimrod-starkware reviewed all commit messages, made 1 comment, and resolved 1 discussion.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @yoavGrs).

@ArielElp ArielElp force-pushed the ariel/enrich_layout_for_serialization branch from d6d529c to dd42241 Compare January 12, 2026 13: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.

:lgtm:

@dorimedini-starkware reviewed 2 files and all commit messages, and made 1 comment.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @yoavGrs).

@ArielElp ArielElp changed the base branch from ariel/move_layout_to_patricia_storage to graphite-base/10987 January 12, 2026 18:04
@ArielElp ArielElp force-pushed the ariel/enrich_layout_for_serialization branch from 0a4c103 to c82e3fc Compare January 12, 2026 18:04
@ArielElp ArielElp force-pushed the graphite-base/10987 branch from 9ca9928 to 26571b0 Compare January 12, 2026 18:04
@ArielElp ArielElp changed the base branch from graphite-base/10987 to main-v0.14.1-committer January 12, 2026 18:04
Copy link
Contributor

@yoavGrs yoavGrs left a comment

Choose a reason for hiding this comment

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

@yoavGrs resolved 1 discussion.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @ArielElp).

Copy link
Contributor

@yoavGrs yoavGrs left a comment

Choose a reason for hiding this comment

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

@yoavGrs reviewed 2 files and all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @ArielElp).

@ArielElp ArielElp added this pull request to the merge queue Jan 13, 2026
Merged via the queue into main-v0.14.1-committer with commit 1d254b3 Jan 13, 2026
17 of 28 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Jan 16, 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.

6 participants