Skip to content

Comments

feat(rpc-types-engine): add into_block_raw_with_transactions_root to execution payloads#3452

Merged
mattsse merged 1 commit intoalloy-rs:mainfrom
Soubhik-10:tx-root
Feb 7, 2026
Merged

feat(rpc-types-engine): add into_block_raw_with_transactions_root to execution payloads#3452
mattsse merged 1 commit intoalloy-rs:mainfrom
Soubhik-10:tx-root

Conversation

@Soubhik-10
Copy link
Contributor

@Soubhik-10 Soubhik-10 commented Jan 7, 2026

Adds into_block_raw_with_transactions_root(B256) to ExecutionPayloadV1, ExecutionPayloadV2, ExecutionPayloadV3, and the ExecutionPayload enum.

This allows callers who already have a pre-computed transactions root to skip the trie computation when converting an execution payload to a block.

Also adds into_block_with_sidecar_and_transactions_root_raw on ExecutionPayload for the sidecar conversion path.

Closes #3444

@Soubhik-10 Soubhik-10 changed the title chore: added extra fn with tx_root ipnut chore: added extra fn with tx_root input Jan 7, 2026
@mattsse mattsse marked this pull request as ready for review February 7, 2026 11:22
@mattsse mattsse changed the title chore: added extra fn with tx_root input feat(rpc-types-engine): add into_block_raw_with_transactions_root to execution payloads Feb 7, 2026
@mattsse mattsse force-pushed the tx-root branch 3 times, most recently from dc88aac to 8c65428 Compare February 7, 2026 11:44
@github-project-automation github-project-automation bot moved this to Reviewed in Alloy Feb 7, 2026
…o execution payloads

Add a method on ExecutionPayloadV1/V2/V3 and ExecutionPayload that accepts a pre-computed transactions root, allowing callers who already have the root to skip the trie computation.

Also adds `into_block_with_sidecar_and_transactions_root_raw` on ExecutionPayload for the sidecar conversion path.

Closes alloy-rs#3444

Co-authored-by: Amp <[email protected]>
Amp-Thread-ID: https://ampcode.com/threads/T-019c37cc-1c3c-70cb-85ed-9bc6b1f6a007
@mattsse mattsse enabled auto-merge (squash) February 7, 2026 11:48
@mattsse mattsse merged commit e18640c into alloy-rs:main Feb 7, 2026
30 checks passed
@github-project-automation github-project-automation bot moved this from Reviewed to Done in Alloy Feb 7, 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.

[Feature] Provide txroot hash to executionPayload to block conversion

2 participants