Skip to content

Comments

eip7732: fix zero-amount builder withdrawals#4651

Merged
jtraglia merged 1 commit intoethereum:masterfrom
nerolation:zero-amount-withdrawals
Oct 13, 2025
Merged

eip7732: fix zero-amount builder withdrawals#4651
jtraglia merged 1 commit intoethereum:masterfrom
nerolation:zero-amount-withdrawals

Conversation

@nerolation
Copy link
Contributor

@nerolation nerolation commented Oct 13, 2025

This update fixes an issue where builder withdrawals with a zero amount could be created, violating EIP-4895’s requirement that all withdrawals must have non-zero amounts. The change adds a guard to ensure builder withdrawals are only appended when the withdrawable_balance is greater than zero, aligning their behavior with standard validator withdrawals.

The problem occurred when a builder’s balance dropped to or below the MIN_ACTIVATION_BALANCE between bid creation and withdrawal processing, resulting in a zero-amount withdrawal being included in the execution payload. With this fix, such withdrawals are now excluded.

  Prevent creating withdrawals with zero amount by adding a guard before
  appending builder withdrawals, ensuring compliance with EIP-4895.
@jtraglia jtraglia added the eip7732 ePBS label Oct 13, 2025
@jtraglia jtraglia changed the title EIP-7732: fix zero-amount builder withdrawals eip7732: fix zero-amount builder withdrawals Oct 13, 2025
Copy link
Contributor

@potuz potuz left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@jtraglia jtraglia left a comment

Choose a reason for hiding this comment

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

LGTM as well, thanks @nerolation!

@jtraglia jtraglia merged commit ffd3674 into ethereum:master Oct 13, 2025
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants