Skip to content

Conversation

@ArielElp
Copy link
Contributor

No description provided.

@reviewable-StarkWare
Copy link

This change is Reviewable

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 7 of 14 files at r1, 7 of 7 files at r2, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @yoavGrs)

@ArielElp ArielElp force-pushed the ariel/subtree_trait branch from 7e61e1e to 50c513c Compare December 10, 2025 11:26
@ArielElp ArielElp changed the title starknet_committer,starknet_patricia: add subtree trait starknet_committer: reorganize facts db files Dec 10, 2025
@ArielElp ArielElp marked this pull request as ready for review December 10, 2025 13:18
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 7 of 14 files at r1, 4 of 7 files at r2, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @ArielElp)


crates/starknet_committer/src/db/facts_db/mod.rs line 2 at r2 (raw file):

pub mod create_facts_tree;
pub mod db;

I don't like the double db in the hierarchy of db.facts_db.db.
Rename to storage? WDYT?
If it breaks the entire stack, add a TODO, please.

Code quote:

pub mod db;

crates/starknet_committer/src/db/facts_db/traversal_test.rs line 35 at r2 (raw file):

use starknet_types_core::hash::Pedersen;

use crate::db::facts_db::traversal::fetch_patricia_paths_inner;

Why do you need it?

Code quote:

use crate::db::facts_db::traversal::fetch_patricia_paths_inner;

@ArielElp ArielElp force-pushed the ariel/subtree_trait branch from 50c513c to 47514f7 Compare December 10, 2025 14:20
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.

Reviewable status: 11 of 14 files reviewed, 2 unresolved discussions (waiting on @nimrod-starkware and @yoavGrs)


crates/starknet_committer/src/db/facts_db/mod.rs line 2 at r2 (raw file):

Previously, yoavGrs wrote…

I don't like the double db in the hierarchy of db.facts_db.db.
Rename to storage? WDYT?
If it breaks the entire stack, add a TODO, please.

Added a TODO. I prefer it to be in mod.rs directly rather than storage.


crates/starknet_committer/src/db/facts_db/traversal_test.rs line 35 at r2 (raw file):

Previously, yoavGrs wrote…

Why do you need it?

It's needed in the file, used to be:

use super::fetch_patricia_paths_inner

that I forgot to delete here, see now.

@ArielElp ArielElp force-pushed the ariel/subtree_trait branch from e82f3e6 to 0b4dfa3 Compare December 11, 2025 06:51
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.

:lgtm:

@yoavGrs reviewed 3 of 3 files at r3, 5 of 5 files at r4, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @ArielElp)

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