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: eip-1559 parameters in extraData #428

Merged

Conversation

roberto-bayardo
Copy link
Contributor

@roberto-bayardo roberto-bayardo commented Oct 12, 2024

Description

EIP-1559 parameters need to be in the ExecutionPayload, not just the PayloadAttributes, to allow geth to properly include the encoded parameters in the block header. So instead of using nonce, we use the extraData field which is already in the ExecutionPayload. This will also reserve nonce to be used for sub-second block times.

@roberto-bayardo roberto-bayardo force-pushed the holocene-execution-payload branch from 4793842 to 78552cd Compare October 15, 2024 22:18
@roberto-bayardo roberto-bayardo changed the title Holocene: eip-1559 parameters in ExecutionPayload Holocene: eip-1559 parameters in extraData Oct 15, 2024
@roberto-bayardo
Copy link
Contributor Author

As discussed in discord, updated spec to use extraData instead of nonce.

@roberto-bayardo roberto-bayardo force-pushed the holocene-execution-payload branch 4 times, most recently from edd510b to 9aaaed6 Compare October 15, 2024 23:46
@roberto-bayardo roberto-bayardo requested a review from tynes October 15, 2024 23:49
@roberto-bayardo roberto-bayardo force-pushed the holocene-execution-payload branch 2 times, most recently from d700fcf to ba4c590 Compare October 16, 2024 15:39
@roberto-bayardo roberto-bayardo force-pushed the holocene-execution-payload branch 4 times, most recently from 8b8b267 to 1307fde Compare October 16, 2024 16:44
@roberto-bayardo roberto-bayardo force-pushed the holocene-execution-payload branch 4 times, most recently from dbcae16 to bb66a8d Compare October 16, 2024 17:15
@roberto-bayardo roberto-bayardo force-pushed the holocene-execution-payload branch 2 times, most recently from b62a4a8 to 7446d94 Compare October 16, 2024 17:46
Copy link
Member

@clabby clabby left a comment

Choose a reason for hiding this comment

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

lgtm. If we want, we can also take this opportunity to address your nitpick in the encoding: denominator, elasticity -> elasticity, denominator.

@roberto-bayardo roberto-bayardo force-pushed the holocene-execution-payload branch from 7446d94 to f35359f Compare October 16, 2024 18:14
@roberto-bayardo
Copy link
Contributor Author

lgtm. If we want, we can also take this opportunity to address your nitpick in the encoding: denominator, elasticity -> elasticity, denominator.

Thanks, given the geth impl is all using this order now, may as well leave it be given how minor this is.

@roberto-bayardo roberto-bayardo force-pushed the holocene-execution-payload branch from f35359f to edb127e Compare October 16, 2024 19:05
Copy link
Contributor

@tynes tynes left a 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, would should let @protolambda have a final say before merge

@tynes
Copy link
Contributor

tynes commented Oct 16, 2024

Just to clarify, no need to add a new p2p topic correct?

@roberto-bayardo
Copy link
Contributor Author

Just to clarify, no need to add a new p2p topic correct?

Correct, we are no longer changing ExecutionPayload since it already contains the ExtraData field.

1 similar comment
@roberto-bayardo
Copy link
Contributor Author

Just to clarify, no need to add a new p2p topic correct?

Correct, we are no longer changing ExecutionPayload since it already contains the ExtraData field.

@roberto-bayardo roberto-bayardo force-pushed the holocene-execution-payload branch 3 times, most recently from 5cadb47 to aa33894 Compare October 17, 2024 14:38
@roberto-bayardo roberto-bayardo force-pushed the holocene-execution-payload branch from fe9fa2b to b303b06 Compare October 18, 2024 19:21
@protolambda protolambda merged commit 30feb6a into ethereum-optimism:main Oct 18, 2024
1 check passed
@roberto-bayardo roberto-bayardo deleted the holocene-execution-payload branch October 18, 2024 19:44
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.

4 participants