mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat: validate empty execution requests for OP (#13980)
This commit is contained in:
@ -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,
|
||||
|
||||
Reference in New Issue
Block a user