Skip to content

Comments

fix: avoid cloning withdrawals in payload body#3542

Merged
mattsse merged 1 commit intoalloy-rs:mainfrom
lisenokdonbassenok:fix/payload-body-withdrawals-move
Jan 19, 2026
Merged

fix: avoid cloning withdrawals in payload body#3542
mattsse merged 1 commit intoalloy-rs:mainfrom
lisenokdonbassenok:fix/payload-body-withdrawals-move

Conversation

@lisenokdonbassenok
Copy link
Contributor

Remove an unnecessary clone when building ExecutionPayloadBodyV1 from an owned Block, reducing allocations in a hot conversion path.
Move withdrawals out of the block body before encoding transactions, avoiding a redundant allocation while preserving behavior.

@github-project-automation github-project-automation bot moved this to Reviewed in Alloy Jan 19, 2026
@mattsse mattsse enabled auto-merge (squash) January 19, 2026 10:48
@mattsse mattsse merged commit 1219331 into alloy-rs:main Jan 19, 2026
30 checks passed
@github-project-automation github-project-automation bot moved this from Reviewed to Done in Alloy Jan 19, 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.

3 participants