From 60f9277dc5d6d1f506b1ec8d41f9f619644df50a Mon Sep 17 00:00:00 2001 From: Julian Meyer Date: Fri, 24 Jan 2025 13:54:35 -0800 Subject: [PATCH] feat: validate empty execution requests for OP (#13980) --- crates/optimism/node/src/engine.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/crates/optimism/node/src/engine.rs b/crates/optimism/node/src/engine.rs index 76113ef7f364..184952e023aa 100644 --- a/crates/optimism/node/src/engine.rs +++ b/crates/optimism/node/src/engine.rs @@ -105,6 +105,19 @@ impl EngineValidator for OpEngineValidator where Types: EngineTypes, { + 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,