-
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
feat: Eip1559 params in extradata #11887
feat: Eip1559 params in extradata #11887
Conversation
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.
good start, left some comments
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.
almost there, some more comments about the panics
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.
I have some more comments, almost there, definitely ping me for another review / if you have any more questions
@Rjected PTAL again, removed all Also I can't seem to run the
But running the suggested command is not helpful. |
}; | ||
let (elasticity, denominator) = decode_eip_1559_params(eip_1559_params) | ||
.map_err(|e| EngineObjectValidationError::InvalidParams(e.to_string().into()))?; | ||
if elasticity != 0 && denominator == 0 { |
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.
I don't see test coverage of this line
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 is the test that tests 0 denominator case
c1439bd
to
a2524ca
Compare
2058605
to
878c888
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.
only nits
@@ -192,7 +195,7 @@ pub trait ConfigureEvmEnv: Send + Sync + Unpin + Clone + 'static { | |||
&self, | |||
parent: &Self::Header, | |||
attributes: NextBlockEnvAttributes, | |||
) -> (CfgEnvWithHandlerCfg, BlockEnv); | |||
) -> Result<(CfgEnvWithHandlerCfg, BlockEnv), Self::Error>; |
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.
imo this is reasonable
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.
lgtm
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.
lgtm
we can upstream some of this to op-alloy
Part of Holocene changes to add EIP1559 params to payload, and using the extradata field in block header to store the value.
Spec: https://github.com/ethereum-optimism/specs/blob/main/specs/protocol/holocene/exec-engine.md