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

electra: Add more transition tests #3990

Merged
merged 7 commits into from
Nov 5, 2024

Conversation

mkalinin
Copy link
Collaborator

This PR extends fine tunes checks of upgrade_to_electra tests and also introduces tests for new Electra operations triggered right after the fork:

  • DEPOSIT_REQUEST — checks that it yields a new pending deposit
  • WITHDRAWAL_REQUEST — test requests full withdrawal and checks that validator exit is initiated, might want to introduce partial withdrawal test in the future
  • CONSOLIDATION_REQUEST — test requests switch to compounding credentials and checks that is takes effect, we might want to have a test for a fully featured consolidation but this requires a surgery to the tooling to create a state with total active balance enough for consolidation churn to be greater than zero

This PR also introduces withdrawal and consolidation request helpers. With such helpers the corresponding tests can be refactored to reduce the boiler plate code. But I think it would be better to handle it in a separate PR

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 👍

@jtraglia jtraglia mentioned this pull request Oct 22, 2024
17 tasks
@jtraglia jtraglia merged commit a09d0c3 into ethereum:dev Nov 5, 2024
26 checks passed
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.

2 participants