Skip to content

Holocene: Use ExtraData instead of Nonce for eip1559Params#228

Merged
mininny merged 2 commits intofeature/mininny/holocene-1559-paramsfrom
feature/mininny/holocene-execution-payload
Oct 31, 2024
Merged

Holocene: Use ExtraData instead of Nonce for eip1559Params#228
mininny merged 2 commits intofeature/mininny/holocene-1559-paramsfrom
feature/mininny/holocene-execution-payload

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 ImTei and pcw109550 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