-
Notifications
You must be signed in to change notification settings - Fork 782
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
common: Implement hardfork by time #2437
Conversation
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'll have experiment more deeply with it but it looks okay so far. Let a couple of questions.
74ebde3
to
839d47d
Compare
Codecov Report
Additional details and impacted files
Flags with carried forward coverage won't be shown. Click here to find out more. |
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.
Looking good overall. I think we need to carefully consider some of these changes though and make sure we're handling edge cases. I know I haven't thought of all of them but will try and spin up the withdrawals devnet and validate directly to look for more edge cases.
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.
Looking good overall. I think we need to carefully consider some of these changes though and make sure we're handling edge cases. I know I haven't thought of all of them but will try and spin up the withdrawals devnet and validate directly to look for more edge cases.
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.
Just a couple of small nits at this point. Looks great!
Co-authored-by: acolytec3 <[email protected]>
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.
Yeah, first: thanks a lot Gajinder, great work!!! 🎉 Super-important building block for future Ethereum updates.
I nevertheless already pray for the day when we can clean this code up again. 😋 This yet-another-mechanism addition gets really ugly, regarding the existing naming, the overall bloat of the code, chances that we have some edge cases in there are relatively high.
I would nevertheless have a tendency to for now take this in as we have, I guess that's very much a candidate for a first-round refactor on the next breaking release round, e.g. in a first round changing the names of the Common
functions and take in a dictionary as Gajinder already did at some point.
Ok, so I would have one specific comment to address on our new internal forks, otherwise I am fine with merging! 🙂
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 - will merge once tests pass given @holgerd77 's written approval of the changes as well.
@acolytec3 Thanks a lot for updating, not sure - might not be pressing - just to make sure: weren't there more references of these hardforks - e.g. |
Hmm, I don't see anything in any typescript files. I just renamed the |
|
What is this sharding HF for, is this for your 4844 work? Do we need this (in master) at all? |
I don't see anything in here that references the
Yeah, that can be removed. I wasn't thinking too closely about it and I think we've been so focused on the 4844 work it just got conflated with the dummy EOF hardfork so left in. |
Ah, you are right, this is using the string directly, didn't look to closely. Ok, I might delete the HF along release if you don't contradict. Also: still planning to do the releases, maybe end of the week or beginning of next week. |
Sounds good to me. Definitely support keeping master as clean as possible. |
yes eof.spec.ts doesn't directly refer the hardfork, but its refered in the geth genesis used for it in the config, |
The new post merge hardforks which need to be coordinated with CL are based on timestamp.
this PR attempts the same.