-
Notifications
You must be signed in to change notification settings - Fork 792
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
Isthmus: re-introduce withdrawals root in block header #451
Conversation
This reverts commit a7e2bc5.
65a129d
to
cf1bdd0
Compare
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.
Looks good to me. Checked the diff against the original PR, and the changes are good.
One issue though: this PR is going to conflict with the v1.14.2 changes. I think we can merge this first, and then fix the conflicts in the v1.14.2 PR.
Will confirm with @sebastianst if we can merge this now. |
* Adds a `BlockType` interface with a method to check if the header has a CustomWithdrawalsRoot, to be used when Isthmus fork is active. * `ChainConfig` implements the interface and is passed to NewBlock() api. * `BlockConfig` implements the interface as well and is used for invocation from tests.
cf1bdd0
to
a55434e
Compare
Merging with a merge-commit, to keep the re-apply commit in there, since it undoes a revert. |
Description
Restores the changes originally in #383. We had to revert this to de-risk Holocene RC. This PR re-introduces the changes for L2 withdrawals root. An additional change was added to do away passing the
ChainConfig
directly toNewBlock()
and instead pass aBlockType
interface that is implement d byChainConfig
. An additionalBlockConfig
struct implements the interface as well, for usage in tests here and in the monorepo.Tests
Additional context
Original PR for this: #383
Reverted changes: #449
Metadata
Ref: ethereum-optimism/optimism#12044