Skip to content

Conversation

@yoavGrs
Copy link
Contributor

@yoavGrs yoavGrs commented Jan 7, 2026

No description provided.

@reviewable-StarkWare
Copy link

This change is Reviewable

Copy link
Contributor Author

yoavGrs commented Jan 7, 2026

Copy link
Collaborator

@amosStarkware amosStarkware left a comment

Choose a reason for hiding this comment

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

@amosStarkware reviewed 6 files and all commit messages, and made 3 comments.
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @yoavGrs).


crates/apollo_batcher/src/commitment_manager/commitment_manager_impl.rs line 269 at r1 (raw file):

    pub(crate) fn final_commitment_output<R: BatcherStorageReader + ?Sized>(
        storage_reader: Arc<R>,
        CommitmentTaskOutput { response: CommitBlockResponse { state_root: global_root }, height }: CommitmentTaskOutput,

can you add a TODO to rename state_root to global_root?

Code quote:

CommitmentTaskOutput { response: CommitBlockResponse { state_root: global_root }, height }: CommitmentTaskOutput,

crates/apollo_batcher/src/commitment_manager/types.rs line 30 at r1 (raw file):

pub type CommitmentTaskResult = CommitterClientResult<CommitmentTaskOutput>;
pub type RevertTaskResult = CommitterClientResult<RevertTaskOutput>;

I don't think the state committer should ever return an error - it should either panic or return the result.

Code quote:

pub type CommitmentTaskResult = CommitterClientResult<CommitmentTaskOutput>;
pub type RevertTaskResult = CommitterClientResult<RevertTaskOutput>;

crates/apollo_batcher/src/commitment_manager/types.rs line 42 at r1 (raw file):

        match self {
            Self::Commit(commitment_task_result) => commitment_task_result,
            Self::Revert(_) => panic!("Get revert result at unwrapping commitment."),

Suggestion:

Got revert result at unwrapping commitment.

@yoavGrs yoavGrs force-pushed the yoav/apollo_batcher/committer_output_types branch from 028a59e to b262867 Compare January 7, 2026 13:46
Copy link
Contributor Author

@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 made 3 comments.
Reviewable status: 0 of 7 files reviewed, 3 unresolved discussions (waiting on @amosStarkware and @yoavGrs).


crates/apollo_batcher/src/commitment_manager/commitment_manager_impl.rs line 269 at r1 (raw file):

Previously, amosStarkware wrote…

can you add a TODO to rename state_root to global_root?

Done.


crates/apollo_batcher/src/commitment_manager/types.rs line 30 at r1 (raw file):

Previously, amosStarkware wrote…

I don't think the state committer should ever return an error - it should either panic or return the result.

Removed.


crates/apollo_batcher/src/commitment_manager/types.rs line 42 at r1 (raw file):

        match self {
            Self::Commit(commitment_task_result) => commitment_task_result,
            Self::Revert(_) => panic!("Get revert result at unwrapping commitment."),

Done.

@yoavGrs yoavGrs force-pushed the yoav/apollo_batcher/committer_output_types branch from b262867 to 2dc98ce Compare January 7, 2026 13:52
Copy link
Collaborator

@amosStarkware amosStarkware left a comment

Choose a reason for hiding this comment

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

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

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


crates/apollo_batcher/src/commitment_manager/types.rs line 38 at r3 (raw file):

        match self {
            Self::Commit(commitment_task_output) => commitment_task_output,
            Self::Revert(_) => panic!("Got revert output."),

Suggestion:

panic!("Got revert output: {self:?}."),

@yoavGrs yoavGrs force-pushed the yoav/apollo_batcher/committer_output_types branch from 2dc98ce to 84fe370 Compare January 7, 2026 15:16
Copy link
Contributor Author

@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 made 1 comment.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @dorimedini-starkware).


crates/apollo_batcher/src/commitment_manager/types.rs line 38 at r3 (raw file):

        match self {
            Self::Commit(commitment_task_output) => commitment_task_output,
            Self::Revert(_) => panic!("Got revert output."),

Done.

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

@yoavGrs yoavGrs added this pull request to the merge queue Jan 8, 2026
Merged via the queue into main-v0.14.1-committer with commit 6f79b9a Jan 8, 2026
15 checks passed
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