Skip to content

apollo_node_config: batcher support for validation only node config.#13625

Open
asaf-sw wants to merge 1 commit intoasaf/validation-only-node-configfrom
asaf/validation-only-node-batcher
Open

apollo_node_config: batcher support for validation only node config.#13625
asaf-sw wants to merge 1 commit intoasaf/validation-only-node-configfrom
asaf/validation-only-node-batcher

Conversation

@asaf-sw
Copy link
Copy Markdown

@asaf-sw asaf-sw commented Mar 31, 2026

No description provided.

@reviewable-StarkWare
Copy link
Copy Markdown

This change is Reviewable

Copy link
Copy Markdown
Author

asaf-sw commented Mar 31, 2026

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

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

@asaf-sw asaf-sw force-pushed the asaf/validation-only-node-batcher branch 2 times, most recently from a99415f to 958afcb Compare March 31, 2026 12:43
@asaf-sw asaf-sw changed the base branch from asaf/validation-only-node-config to graphite-base/13625 March 31, 2026 13:04
@asaf-sw asaf-sw force-pushed the asaf/validation-only-node-batcher branch from e348fc1 to 1f1954b Compare March 31, 2026 13:12
@asaf-sw asaf-sw changed the base branch from graphite-base/13625 to asaf/validation-only-node-config March 31, 2026 13:12
@asaf-sw asaf-sw force-pushed the asaf/validation-only-node-batcher branch from 1f1954b to f6e2abf Compare March 31, 2026 13:20
Copy link
Copy Markdown
Contributor

@guy-starkware guy-starkware left a comment

Choose a reason for hiding this comment

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

@guy-starkware reviewed 4 files and all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on asaf-sw).

Copy link
Copy Markdown
Contributor

@guy-starkware guy-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: :shipit: complete! all files reviewed, all discussions resolved (waiting on asaf-sw).

@asaf-sw asaf-sw force-pushed the asaf/validation-only-node-batcher branch from f6e2abf to ff5fd4d Compare March 31, 2026 13:26
Copy link
Copy Markdown
Collaborator

@ShahakShama ShahakShama left a comment

Choose a reason for hiding this comment

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

@ShahakShama reviewed 1 file and all commit messages, and made 3 comments.
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on asaf-sw).


a discussion (no related file):
Let's discuss this here: Why do you need the validation_only flag in batcher and not just use mempool client's optionness


crates/apollo_batcher/src/batcher.rs line 226 at r2 (raw file):

            "validation_only={} but mempool_client is {}",
            config.static_config.validation_only,
            if mempool_client.is_none() { "None" } else { "Some" }

Consider mempool_client.map(|_| "...") instead


crates/apollo_node/src/components.rs line 89 at r2 (raw file):

                .get_committer_shared_client()
                .expect("Committer client should be available");
            let mempool_client = if config.validation_only {

Use bool::then

Copy link
Copy Markdown
Collaborator

@ShahakShama ShahakShama left a comment

Choose a reason for hiding this comment

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

:lgtm:

Unblocking for the holiday as these comments aren't critical. Please fix them in a future PR

@ShahakShama made 1 comment.
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on asaf-sw).

@asaf-sw asaf-sw marked this pull request as ready for review March 31, 2026 14:08
Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Copy link
Copy Markdown
Author

@asaf-sw asaf-sw left a comment

Choose a reason for hiding this comment

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

@asaf-sw resolved 1 discussion.
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on asaf-sw).

Copy link
Copy Markdown
Author

@asaf-sw asaf-sw left a comment

Choose a reason for hiding this comment

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

@asaf-sw resolved 2 discussions.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on asaf-sw).

Copy link
Copy Markdown
Author

@asaf-sw asaf-sw left a comment

Choose a reason for hiding this comment

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

:lgtm:

@asaf-sw made 1 comment and resolved 1 discussion.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on asaf-sw).

Copy link
Copy Markdown
Author

asaf-sw commented Mar 31, 2026

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

​This is intentional that code should not be reachable when the node is in Validation Only mode and if we somehow reached it it's an internal logic bug.

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