-
-
Notifications
You must be signed in to change notification settings - Fork 312
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
Add ENRForkID to ENR eth2 #843
Conversation
@@ -70,4 +70,17 @@ export interface IBeaconParams { | |||
MAX_ATTESTATIONS: number; | |||
MAX_DEPOSITS: number; | |||
MAX_VOLUNTARY_EXITS: number; | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I define ALL_FORKS here and load it from yaml file in lodestar-cli, is it ok? I want it to be loaded in 1 single space and be able to process it in multiple modules in config.params.ALL_FORKS
. Maybe for historical hard forks we want to store it in database, just load the future ones.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is fine
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 LGTM
@@ -70,4 +70,17 @@ export interface IBeaconParams { | |||
MAX_ATTESTATIONS: number; | |||
MAX_DEPOSITS: number; | |||
MAX_VOLUNTARY_EXITS: number; | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is fine
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Curious, if we have scheduled hard forks that changes state transition, how do we handle multiple state transition dependencies. Can you even do that? 😄
@mpetrunic what do you mean |
If there is some breaking change in state transition and we have to schedule new hard fork. When you sync from genesis again you have to run with old state transition until hard fork then you need to switch to new beacon state transition I guess |
it should work fine because the |
You didn't get my point, it's not related to this PR per se. So you are syncing chain that went trough hardfork.
I wonder if it's even possible to do something like that |
ah... I can't come up with something like that atm ... |
Goal
TODOs work for discv 5: