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

Holocene: Use ExtraData instead of Nonce for eip1559Params #228

Conversation

mininny
Copy link
Member

@mininny mininny commented Oct 15, 2024

Description

The Holocene EIP-1559 parameters need to also be in the execution payload so the payload otherwise it won't be able to populate the nonce field appropriately when materializing the block.

Additional context

Corresponding spec update: ethereum-optimism/specs#428

Mirror of op-geth change: ethereum-optimism/op-geth#402

@mininny mininny requested review from pcw109550 and ImTei October 15, 2024 17:29
if len(req.EIP1559Params) != 8 {
return nil, &rpc.InvalidParamsError{Message: fmt.Sprintf("invalid EIP1559Params length: %v", len(req.EIP1559Params))}
}
copy(header.Nonce[:], req.EIP1559Params)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't we use extraData to contain EIP1559Params?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The spec was updated 5 hours ago, I will update the code tomorrow. :)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've updated the code to match the spec and the geth change!

@mininny mininny force-pushed the feature/mininny/holocene-execution-payload branch 2 times, most recently from fa4005a to 3b20a35 Compare October 21, 2024 17:23
@mininny mininny force-pushed the feature/mininny/holocene-execution-payload branch from 3b20a35 to 5699df6 Compare October 21, 2024 17:26
@mininny mininny changed the title Holocene: Add eip1559Params to execution payload Holocene: Use ExtraData instead of Nonce for eip1559Params Oct 21, 2024
@mininny mininny requested a review from ImTei October 21, 2024 17:39
@mininny mininny merged commit 302ea94 into feature/mininny/holocene-1559-params Oct 31, 2024
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