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

feat: pectra compatability #893

Open
wants to merge 3 commits into
base: slashing-magnitudes
Choose a base branch
from

Conversation

ypatil12
Copy link
Collaborator

@ypatil12 ypatil12 commented Nov 15, 2024

Updates checkpoint proof system to be Pectra compatible. The breaking change to EigenPods is the BeaconState container increasing to have 38 fields, which results in the tree height to be > 5.

EigenPodManager

  • Added a setPectraForkTimestamp method in the EPM that is callable only once
  • Added a getPectraForkTimestamp method

EigenPod

  • Updated balance container and validator container proofs to pass in a proof timestamp to check against which tree height to use for the beacon state
  • Note that since the 4788 oracle returns the PARENT beacon block root, our check against the pectra fork timestamp returns the previous tree length for proofs that are <= pectraForkTimestamp

Deprecation Plan

  • Post pectra, we can upgrade the EigenPod to deprecate the fork timestamp case handling once all in progress pre-Pectra checkpoints have been completed

TODOs

  • Unit Tests
  • Integration Tests simulating upgrade
  • Mekong Deployment

@ypatil12 ypatil12 changed the base branch from dev to slashing-magnitudes November 15, 2024 17:58
@ypatil12 ypatil12 changed the title Pectra Compatability feat: Pectra Compatability Nov 15, 2024
@ypatil12 ypatil12 changed the title feat: Pectra Compatability feat: pectra compatability Nov 15, 2024
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.

1 participant