Skip to content

Update attestation rewards API for Electra #6819

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

Merged
merged 7 commits into from
Feb 9, 2025

Conversation

michaelsproul
Copy link
Member

@michaelsproul michaelsproul commented Jan 20, 2025

Issue Addressed

Closes:

Proposed Changes

Use MAX_EFFECTIVE_BALANCE_ELECTRA (2048) for attestation reward calculations involving Electra.

Add a new InteropGenesisBuilder that tries to provide a more flexible way to build genesis states. Unfortunately due to lifetime jank, it is quite unergonomic at present. We may want to refactor this builder in future to make it easier to use.

Additional Info

  • Needs a regression test.

@michaelsproul michaelsproul added work-in-progress PR is a work-in-progress HTTP-API electra Required for the Electra/Prague fork labels Jan 20, 2025
@michaelsproul michaelsproul mentioned this pull request Jan 28, 2025
2 tasks
@michaelsproul michaelsproul added the v7.0.0-beta.0 New release c. Q1 2025 label Jan 30, 2025
@michaelsproul
Copy link
Member Author

Testing this is proving harder than I thought, but I should have something up tomorrow.

@michaelsproul michaelsproul added ready-for-review The code is ready for review and removed work-in-progress PR is a work-in-progress labels Jan 31, 2025
michaelsproul added a commit that referenced this pull request Feb 7, 2025
Squashed commit of the following:

commit 3539bcc
Author: Michael Sproul <[email protected]>
Date:   Thu Feb 6 09:36:48 2025 +1100

    Fix min balance in test

commit ba4bfa7
Author: Michael Sproul <[email protected]>
Date:   Tue Feb 4 15:09:06 2025 +1100

    Restore alternating credentials in beacon chain tests

commit d2b0f54
Author: Michael Sproul <[email protected]>
Date:   Tue Feb 4 13:20:04 2025 +1100

    Delete some junk

commit 93c0301
Merge: 501280c 7e4b27c
Author: Michael Sproul <[email protected]>
Date:   Tue Feb 4 09:57:20 2025 +1100

    Merge branch 'unstable' into attestation-rewards-electra

commit 501280c
Merge: 252dbbd e4183f8
Author: Michael Sproul <[email protected]>
Date:   Fri Jan 31 16:39:56 2025 +1100

    Merge remote-tracking branch 'origin/unstable' into attestation-rewards-electra

commit 252dbbd
Author: Michael Sproul <[email protected]>
Date:   Fri Jan 31 16:34:12 2025 +1100

    Add regression test and generalise interop builder

commit 2d8c308
Author: Michael Sproul <[email protected]>
Date:   Mon Jan 20 18:20:30 2025 +1100

    Update attestation rewards API for Electra
Copy link
Member

@eserilev eserilev left a comment

Choose a reason for hiding this comment

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

LGTM

@michaelsproul michaelsproul added ready-for-merge This PR is ready to merge. and removed ready-for-review The code is ready for review labels Feb 9, 2025
mergify bot added a commit that referenced this pull request Feb 9, 2025
@mergify mergify bot merged commit 0344f68 into unstable Feb 9, 2025
31 checks passed
@mergify mergify bot deleted the attestation-rewards-electra branch February 9, 2025 10:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
electra Required for the Electra/Prague fork HTTP-API ready-for-merge This PR is ready to merge. v7.0.0-beta.0 New release c. Q1 2025
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants