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: introduce EIP-6110 epoch and version in ChainConfig #5953

Closed
wants to merge 1 commit into from

Conversation

ensi321
Copy link
Contributor

@ensi321 ensi321 commented Sep 12, 2023

Motivation

This is part of the effort to implement #5366 .
Original intention was to implement changes to pubkey cache on unstable branch, and the actual EIP-6110 implementation on a separate branch. However, there is a need to have a fork gate on pubkey cache mentioned here #5937 (comment) .As such, there is a need to define the EIP-6110 fork in unstable branch.

This PR is to make as minimal change as possible to define EIP-6110 fork such that the development of fork gate on pubkey cache can continue.

Description

  • Introduce optional fields EIP6110_FORK_VERSION and EIP6110_FORK_EPOCH in ChainConfig.
  • Handles optional fields during (de)serialization of ChainConfig.

@ensi321 ensi321 changed the title feat: Introduce EIP-6110 epoch and version in ChainConfig feat: introduce EIP-6110 epoch and version in ChainConfig Sep 12, 2023
@ensi321 ensi321 marked this pull request as ready for review September 12, 2023 10:00
@ensi321 ensi321 requested a review from a team as a code owner September 12, 2023 10:00
@@ -40,6 +40,9 @@ export type ChainConfig = {
// DENEB
DENEB_FORK_VERSION: Uint8Array;
DENEB_FORK_EPOCH: number;
// EIP6110 - Experimental fork
EIP6110_FORK_VERSION?: Uint8Array,
Copy link
Contributor

Choose a reason for hiding this comment

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

no need to make it optional, in the corresponding mainnet spec, add it and set its epoch to infinity

@dapplion
Copy link
Contributor

dapplion commented Sep 12, 2023

@naviechan I would prefer to not partially merge eip6110 components to our main release branch. Instead have a main branch for eip6110 with all the code, kind of like lighthouse do. We can latter down the line consider including into a main release, but not now.

EDIT: Sorry did not read the PR description in depth. Still I don't understand why this PR is necessary.

@ensi321 ensi321 closed this Sep 12, 2023
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.

3 participants