eip7732: fix zero-amount builder withdrawals#4651
Merged
jtraglia merged 1 commit intoethereum:masterfrom Oct 13, 2025
Merged
Conversation
Prevent creating withdrawals with zero amount by adding a guard before appending builder withdrawals, ensuring compliance with EIP-4895.
terencechain
approved these changes
Oct 13, 2025
jtraglia
approved these changes
Oct 13, 2025
Member
jtraglia
left a comment
There was a problem hiding this comment.
LGTM as well, thanks @nerolation!
18 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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_balanceis 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_BALANCEbetween 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.