Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix partial withdrawals #14509

Merged
merged 1 commit into from
Oct 14, 2024
Merged

Fix partial withdrawals #14509

merged 1 commit into from
Oct 14, 2024

Conversation

terencechain
Copy link
Member

Blocked by #14430 for spec tests

Bug description: https://hackmd.io/@ttsao/S13TVqkA0
Fix: reference: ethereum/consensus-specs#3943

The bug in Electra occurs during the processing of partial withdrawals. When a pending partial withdrawal is skipped due to insufficient effective or excess balance, an offset is created because the partial_withdrawals_count doesn't account for the skipped withdrawal. This leads to the same withdrawal being processed twice, as skipped withdrawals aren't properly counted. The solution is to increment partial_withdrawals_count even for skipped withdrawals to ensure accurate pruning of pending_partial_withdrawals.

james-prysm
james-prysm previously approved these changes Oct 7, 2024
@james-prysm james-prysm mentioned this pull request Oct 10, 2024
3 tasks
@terencechain terencechain added this pull request to the merge queue Oct 14, 2024
Merged via the queue into develop with commit 80cafaa Oct 14, 2024
18 checks passed
@terencechain terencechain deleted the fix-partial-withdrawals branch October 14, 2024 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants