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

eip7251: Fix partial withdrawals count #3943

Merged
merged 4 commits into from
Sep 30, 2024

Conversation

mkalinin
Copy link
Collaborator

Fixes the bug found by @terencechain, detailed description can be found in this report: https://hackmd.io/@ttsao/S13TVqkA0

TL;DR: partial_withdrawals_count wasn’t taking skipped partial withdrawals into account, thus, some partial withdrawals were not removed from the queue even though there were processed which finally resulted in them being included twice into EL blocks.

This PR contains a test covering the above case, but there still the need of writing more tests for pending partial withdrawals.

ToDo

  • write more tests to cover pending partial withdrawals processing

@jtraglia jtraglia added the general:bug Something isn't working label Sep 26, 2024
Copy link
Member

@ralexstokes ralexstokes left a comment

Choose a reason for hiding this comment

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

nice catch! and I think this is a good fix for now

it may help testing/reasoning to refactor get_expected_withdrawals but that can come later, if it does

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Electra general:bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants