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

Move yield pre-state after pre-state setup #3960

Merged
merged 1 commit into from
Oct 7, 2024

Conversation

jtraglia
Copy link
Member

@jtraglia jtraglia commented Oct 7, 2024

This PR fixes two incorrect tests which were new to the alpha.7 release:

  • basic_el_withdrawal_request
  • cl_exit_and_el_withdrawal_request_in_same_block

The problem: we call set_eth1_withdrawal_credential_with_balance after yield 'pre', state, so the expected pre-state is incorrect. This also explains why the tests pass locally but not for the clients.

The solution: move the yield 'pre', state statement after changes to the pre-state. For consistency, I moved the yield statement for all four functions in this file, so they are all in the same relative spot.

Thank you @hwwhww for identifying the problem.

See also:

Copy link
Contributor

@hwwhww hwwhww left a comment

Choose a reason for hiding this comment

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

Thank you @jtraglia !

And thank @tersec @terencechain @lucassaldanha for reporting it!

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.

lgtm!

@jtraglia jtraglia merged commit c1a3b86 into ethereum:dev Oct 7, 2024
26 checks passed
@jtraglia jtraglia deleted the fix-alpha-7-tests branch October 7, 2024 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants