Skip to content

feat(rpc): add configurable pending block behaviour#17677

Merged
mattsse merged 1 commit intoparadigmxyz:mainfrom
shiyasmohd:shiyasmohd/pending-block-behaviour
Aug 15, 2025
Merged

feat(rpc): add configurable pending block behaviour#17677
mattsse merged 1 commit intoparadigmxyz:mainfrom
shiyasmohd:shiyasmohd/pending-block-behaviour

Conversation

@shiyasmohd
Copy link
Contributor

This PR solves the issue addressed here, where RPC was always building entire blocks with all transactions.

Changes
Add --rpc.pending-block CLI option to control pending block construction:

  • empty: Return block header only, no transactions
  • none: Return null/no pending block
  • full: Include all transactions from mempool (default)

Closes #17535

Let me know if any changes are required! Thanks!

@github-project-automation github-project-automation bot moved this to Backlog in Reth Tracker Jul 30, 2025
@shiyasmohd shiyasmohd force-pushed the shiyasmohd/pending-block-behaviour branch 4 times, most recently from 6135054 to d398855 Compare July 30, 2025 10:28
Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

cool, smol nits

@github-project-automation github-project-automation bot moved this from Backlog to In Progress in Reth Tracker Jul 30, 2025
@shiyasmohd shiyasmohd force-pushed the shiyasmohd/pending-block-behaviour branch 4 times, most recently from b156ab8 to 2d171ce Compare July 30, 2025 11:20
@shiyasmohd
Copy link
Contributor Author

@mattsse Thanks for the review! I've pushed the changes.

@shiyasmohd shiyasmohd requested a review from mattsse July 31, 2025 08:37
@shiyasmohd
Copy link
Contributor Author

Following up here :)

fix: formating & clippy

feat: impl pending_block_config on optimism

docs: add docs for pending-block flag

fix: fix fmt

docs: update description for pending-block flag

fix: change PendingBlockConfig to PendingBlockKind
@RomanHodulak RomanHodulak force-pushed the shiyasmohd/pending-block-behaviour branch from 2d171ce to 3d9658c Compare August 15, 2025 11:24
Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

lgtm!

actually pretty straightforward,easy integration

@mattsse
Copy link
Collaborator

mattsse commented Aug 15, 2025

@shiyasmohd sorry for the delay, we had to time this with another feature

@mattsse mattsse added this pull request to the merge queue Aug 15, 2025
Merged via the queue into paradigmxyz:main with commit de157aa Aug 15, 2025
41 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in Reth Tracker Aug 15, 2025
@shiyasmohd
Copy link
Contributor Author

Thanks!

lwedge99 pushed a commit to sentioxyz/reth that referenced this pull request Sep 16, 2025
theochap pushed a commit to ethereum-optimism/optimism that referenced this pull request Jan 22, 2026
theochap pushed a commit to ethereum-optimism/optimism that referenced this pull request Feb 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Add config setting for pending block behaviour

2 participants