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

Test: Add a test for processing multiple deposits within the same epoch for a given validator #6632

Draft
wants to merge 3 commits into
base: unstable
Choose a base branch
from

Conversation

bshastry
Copy link

Issue Addressed

ethereum/consensus-specs#4021

Proposed Changes

The idea is to create pre/post electra tests that do the following

  • create a deposit in block N, epoch E for validator X
  • create another deposit in block N + 3, epoch E for validator X
  • assert that the balance of the validator after processing the deposits in the epoch equals expectation

Additional Info

The test case pre electra works. I have not been able to correctly model state transition to electra (this test currently panics due to the mock execution layer not being able to provide a valid payload), so help there would be appreciated. I have hence maked this PR, draft.

@CLAassistant
Copy link

CLAassistant commented Nov 29, 2024

CLA assistant check
All committers have signed the CLA.

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