-
Notifications
You must be signed in to change notification settings - Fork 754
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: Tests and misc updates for L2 withdrawals root #399
base: l2-withdrawals-root
Are you sure you want to change the base?
Conversation
f790bbd
to
d4998b0
Compare
8d2f6ac
to
823e2d9
Compare
…thdrawals storage root
and update checks for l2 withdrawal root to be gated on Isthmus instead of Holocene
d4998b0
to
f56b4ca
Compare
* To check whether Isthmus is active within NewBlock(), to appropriately handle withdrawalRoot, we need to pass in chainConfig. * Also added a Block RLP encode/decode test.
...of L2ToL1MessagePasser contract
ExecutableDataToBlockNoHash() needs to know whether Isthmus is active to determine the correct treatment of withdrawalsRoot
regenerating binding with go1.22 results in different unmarshalling code that fails existing tests
@protolambda In order to update the genesis handling when reading from superchain-registry: https://github.com/ethereum-optimism/op-geth/blob/optimism/core/superchain.go#L30-L46 , I will need to make a change to SCR to:
Going to work on that PR, so there's a TBD in |
they were mainly to address vscode warnings, will move it to a separate PR
also removed usage of a 3rd party package and custom json tags in header.
// If Isthmus is active at genesis, set the WithdrawalRoot to the storage root of the L2ToL1MessagePasser contract. | ||
if g.IsIsthmus() { | ||
if storageRootMessagePasser == (common.Hash{}) { | ||
// if there was no MessagePasser contract storage, set the WithdrawalsHash to the empty hash |
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.
The specs note that After Isthmus activation, if there was never any withdrawal contract storage, a MPT root of an empty list can be set as the withdrawalsRoot
.
This comment is not relevant. Because |
Targeted to be merged into: #383
for TODO work items in
op-geth
documented in: ethereum-optimism/optimism#12044