Skip to content

feat(rpc-types-engine): add hidden setters to ExecutionPayload#3875

Merged
mattsse merged 1 commit intomainfrom
matt/execution-payload-test-setters
Apr 9, 2026
Merged

feat(rpc-types-engine): add hidden setters to ExecutionPayload#3875
mattsse merged 1 commit intomainfrom
matt/execution-payload-test-setters

Conversation

@mattsse
Copy link
Copy Markdown
Member

@mattsse mattsse commented Apr 9, 2026

Adds doc-hidden setter helpers on ExecutionPayload for fields that test code commonly mutates. Currently consumers like reth-bench's payload invalidation logic match on each variant manually to mutate inner fields; these helpers let callers do payload.set_block_hash(hash) instead.

V1 fields are always settable. V2 (set_withdrawals) and V3 (set_blob_gas_used, set_excess_blob_gas) helpers return bool indicating whether the variant supported the field. All setters are marked #[doc(hidden)] since they are only intended for testing.

Adds doc-hidden setter helpers for ExecutionPayload fields so test
code (e.g. reth-bench's payload invalidation) can mutate fields
without manually matching on each variant.
@mattsse mattsse merged commit fc7036b into main Apr 9, 2026
29 checks passed
@mattsse mattsse deleted the matt/execution-payload-test-setters branch April 9, 2026 05:49
@github-project-automation github-project-automation bot moved this to Done in Alloy Apr 9, 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.

1 participant