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

feat: validate empty execution requests for OP #13980

Merged

Conversation

meyer9
Copy link
Contributor

@meyer9 meyer9 commented Jan 24, 2025

Ensures that execution requests array is empty for Optimism. Fixes #13908

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.

just have one comment on the error case, otherwise lgtm

// according to op spec, execution requests must be empty
if !requests.is_empty() {
return Err(EngineObjectValidationError::InvalidParams(
"non-empty execution requests".to_string().into(),
Copy link
Member

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(),

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

that would make sense

Copy link

codspeed-hq bot commented Jan 24, 2025

CodSpeed Performance Report

Merging #13980 will degrade performances by 10.39%

Comparing meyer9:meyer9/validate-empty-execution-requests (97c25da) with main (0495436)

Summary

❌ 1 regressions
✅ 76 untouched benchmarks

⚠️ Please fix the performance issues or acknowledge them on CodSpeed.

Benchmarks breakdown

Benchmark BASE HEAD Change
hash builder[init size 10000 | update size 100 | num updates 1] 8.7 ms 9.8 ms -10.39%

@meyer9 meyer9 requested a review from Rjected January 24, 2025 21:52
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.

looks good to me!

@Rjected Rjected added this pull request to the merge queue Jan 24, 2025
Merged via the queue into paradigmxyz:main with commit 60f9277 Jan 24, 2025
42 of 43 checks passed
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.

Check empty EL reqs for OpEngineValidator
2 participants