Skip to content

feat(store): yank block producer service#2142

Merged
Mirko-von-Leipzig merged 10 commits into
nextfrom
mirko/yank-store-bp
May 28, 2026
Merged

feat(store): yank block producer service#2142
Mirko-von-Leipzig merged 10 commits into
nextfrom
mirko/yank-store-bp

Conversation

@Mirko-von-Leipzig
Copy link
Copy Markdown
Collaborator

@Mirko-von-Leipzig Mirko-von-Leipzig commented May 26, 2026

Removes the store's block-producer gRPC service. This leaves the store's RPC service as the only remaining item to yank.

The block-producer gets a store State and directly accesses the previous gRPC methods instead. This also removes the store/block-producer desync opportunity.

I also want to move the block proving to the block-producer, and have store only expose State with no extra tasks attached. However, this will only really be possible after the last gRPC service is removed, so for now I've elected to minimize the diff instead of moving things across.

Stacks on #2140.

@Mirko-von-Leipzig Mirko-von-Leipzig added store Related to the store component no changelog This PR does not require an entry in the `CHANGELOG.md` file labels May 26, 2026
Base automatically changed from mirko/yank-bp to next May 27, 2026 08:51
Copy link
Copy Markdown
Contributor

@kkovaacs kkovaacs left a comment

Choose a reason for hiding this comment

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

LGTM!

Comment thread crates/block-producer/src/block_builder/mod.rs Outdated
Copy link
Copy Markdown
Collaborator

@sergerad sergerad left a comment

Choose a reason for hiding this comment

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

LGTM just should replace the clone with into_parts I think.

Comment thread crates/block-producer/src/block_builder/mod.rs Outdated
proposed_batches: stats.proposed_batches,
proven_batches: stats.proven_batches,
}
}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Should these be From<> impls?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Ah actually, that's not really possible unless we import either block producer in the proto crate, or vice versa. Neither of those is appealing so I'm going to leave these in place.

Once we switch to using the gRPC framework these will become encode/decode functions in any case.

Comment thread crates/rpc/src/tests.rs
@Mirko-von-Leipzig Mirko-von-Leipzig enabled auto-merge (squash) May 28, 2026 13:17
@Mirko-von-Leipzig Mirko-von-Leipzig merged commit 93791f2 into next May 28, 2026
35 of 36 checks passed
@Mirko-von-Leipzig Mirko-von-Leipzig deleted the mirko/yank-store-bp branch May 28, 2026 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no changelog This PR does not require an entry in the `CHANGELOG.md` file store Related to the store component

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants