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

Isthmus: withdrawals root in block header #383

Open
wants to merge 1 commit into
base: optimism
Choose a base branch
from

Conversation

protolambda
Copy link
Collaborator

@protolambda protolambda commented Sep 21, 2024

Description

L2 withdrawals storage root is retrieve from the state upon block-sealing, and then inserted into the header as withdrawals-root.

The L1 withdrawals-root is computed as an MPT hash of withdrawals operations. The OP-Stack uses contract-storage instead. In some places this means we have to verify the block-body withdrawals-list is empty, while the header is set to the storage root.

Tests

Work in progress.

Additional context

This PR is used as feature-branch. Changes will not be merged into optimism until the withdrawals changes (specs, op-geth, op-node, and ideally other implementations) are complete for Holocene upgrade.

Metadata

Part of ethereum-optimism/optimism#12044

@protolambda protolambda changed the title all: withdrawals root in header is reused to commit to OP-Stack L2 withdrawals storage root Holocene: withdrawals root in block header Sep 21, 2024
@vdamle vdamle changed the title Holocene: withdrawals root in block header Isthmus: withdrawals root in block header Oct 9, 2024
@vdamle
Copy link
Contributor

vdamle commented Oct 22, 2024

Rebased changes in this branch with latest changes in optimism branch

@vdamle vdamle marked this pull request as ready for review November 18, 2024 15:10
@vdamle vdamle requested a review from a team as a code owner November 18, 2024 15:10
@vdamle vdamle requested a review from ajsutton November 18, 2024 15:10
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.

2 participants