Skip to content

refactor(block-producer): yank gRPC service#2140

Open
Mirko-von-Leipzig wants to merge 1 commit into
mirko/forward-submissionsfrom
mirko/yank-bp
Open

refactor(block-producer): yank gRPC service#2140
Mirko-von-Leipzig wants to merge 1 commit into
mirko/forward-submissionsfrom
mirko/yank-bp

Conversation

@Mirko-von-Leipzig
Copy link
Copy Markdown
Collaborator

Removes the block producer gRPC service. Transaction and batch submissions are instead injected directly in the RPC handlers.

Ideally this would be the SharedMempool but I've elected to make that change in a follow-up PR instead. This would require moving a shared store instance into the RPC layer, and the block and batch builders, which I deemed overly noisy.

Stacks on #2139, part of #1961.

@Mirko-von-Leipzig Mirko-von-Leipzig added rpc Related to the RPC component block-producer Related to the block producer component no changelog This PR does not require an entry in the `CHANGELOG.md` file labels May 26, 2026
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.

Looks good to me!

block_budget: BlockBudget { batches: self.max_batches_per_block },
tx_capacity: self.mempool_tx_capacity,
..Default::default()
let api_config = BlockProducerApiConfig {
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 we create a constructor for BlockProducerApiConfig?

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.

Probably, but I'll defer that to clean up afterwards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

block-producer Related to the block producer component no changelog This PR does not require an entry in the `CHANGELOG.md` file rpc Related to the RPC component

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants