Skip to content

Commit

Permalink
feat: validate empty execution requests for OP (#13980)
Browse files Browse the repository at this point in the history
  • Loading branch information
meyer9 authored Jan 24, 2025
1 parent a087731 commit 60f9277
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions crates/optimism/node/src/engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,19 @@ impl<Types> EngineValidator<Types> for OpEngineValidator
where
Types: EngineTypes<PayloadAttributes = OpPayloadAttributes>,
{
fn validate_execution_requests(
&self,
requests: &alloy_eips::eip7685::Requests,
) -> Result<(), EngineObjectValidationError> {
// according to op spec, execution requests must be empty
if !requests.is_empty() {
return Err(EngineObjectValidationError::InvalidParams(
"NonEmptyExecutionRequests".to_string().into(),
))
}
Ok(())
}

fn validate_version_specific_fields(
&self,
version: EngineApiMessageVersion,
Expand Down

0 comments on commit 60f9277

Please sign in to comment.