-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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: validate empty execution requests for OP #13980
feat: validate empty execution requests for OP #13980
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.
just have one comment on the error case, otherwise lgtm
crates/optimism/node/src/engine.rs
Outdated
// according to op spec, execution requests must be empty | ||
if !requests.is_empty() { | ||
return Err(EngineObjectValidationError::InvalidParams( | ||
"non-empty execution requests".to_string().into(), |
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.
Can we make this match the style of the other error messages?
eg, camel case
"MissingGasLimitInPayloadAttributes".to_string().into(),
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.
fixed, should we also update these? https://github.com/meyer9/reth/blob/0b4a0dbb10fcb8a405c155cdb6ac058e8813a52d/crates/payload/primitives/src/lib.rs#L386
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.
that would make sense
CodSpeed Performance ReportMerging #13980 will degrade performances by 10.39%Comparing Summary
Benchmarks breakdown
|
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.
looks good to me!
Ensures that execution requests array is empty for Optimism. Fixes #13908