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

Add eip1559 params to payload #11473

Closed
wants to merge 16 commits into from

Conversation

cody-wang-cb
Copy link
Contributor

@cody-wang-cb cody-wang-cb commented Oct 4, 2024

Part of Holocene changes to add EIP1559 params to payload, and using the nonce field in block header to store the value.

Spec: https://github.com/ethereum-optimism/specs/blob/main/specs/protocol/holocene/exec-engine.md

crates/optimism/evm/src/lib.rs Outdated Show resolved Hide resolved
crates/optimism/evm/src/lib.rs Outdated Show resolved Hide resolved
crates/optimism/payload/src/payload.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@refcell refcell left a comment

Choose a reason for hiding this comment

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

Nice work!

@tynes
Copy link

tynes commented Oct 7, 2024

Comment on lines +251 to +263
impl Default for EthPayloadBuilderAttributes {
fn default() -> Self {
Self {
id: PayloadId::new([0; 8]),
parent: B256::default(),
timestamp: 0,
suggested_fee_recipient: Address::ZERO,
prev_randao: B256::default(),
withdrawals: Withdrawals::default(),
parent_beacon_block_root: None,
}
}
}
Copy link
Member

Choose a reason for hiding this comment

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

this can probably be derived

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Requires this change in alloy I think, PTAL
alloy-rs/alloy#1442

@cody-wang-cb cody-wang-cb changed the title (DRAFT) Add eip1559 params to payload Add eip1559 params to payload Oct 9, 2024
@cody-wang-cb cody-wang-cb marked this pull request as ready for review October 9, 2024 00:10
@tynes
Copy link

tynes commented Oct 10, 2024

The consensus rules look good to me

@cody-wang-cb
Copy link
Contributor Author

This PR is ready for final reviews if any of you want to give another look at it
@clabby @tynes @Rjected @mattsse

Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

@cody-wang-cb any new spec changes we need to include here?

if not I'm getting this over the line tmrw

Copy link
Member

@Rjected Rjected left a comment

Choose a reason for hiding this comment

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

@mattsse the spec will most likely use extraData now for the 1559 params: ethereum-optimism/specs#428 so it looks like this will need to change to not have it in the nonce field

@cody-wang-cb
Copy link
Contributor Author

Hey @mattsse, @Rjected is right that I still need to update the new spec changes, I'm thinking about creating a separate PR

@Rjected
Copy link
Member

Rjected commented Oct 17, 2024

Hey @mattsse, @Rjected is right that I still need to update the new spec changes, I'm thinking about creating a separate PR

Yeah we still need the newest spec details (extraData stuff), and creating a separate PR is a good idea

@mattsse
Copy link
Collaborator

mattsse commented Oct 30, 2024

with #11887 do we still need this?

@cody-wang-cb
Copy link
Contributor Author

Nope i can close this!

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.

6 participants