-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Conversation
1651917
to
84a47ef
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work!
The spec can be found here: https://github.com/ethereum-optimism/specs/blob/main/specs/protocol/holocene/exec-engine.md |
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, | ||
} | ||
} | ||
} |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
b72cb4a
to
ea57b2a
Compare
fc826a5
to
8dc0b36
Compare
The consensus rules look good to me |
There was a problem hiding this 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
There was a problem hiding this 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
with #11887 do we still need this? |
Nope i can close this! |
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