Function validate_execution_requests

Source
pub fn validate_execution_requests(
    requests: &[Bytes],
) -> Result<(), EngineObjectValidationError>
Expand description

Validates that execution requests are valid according to Engine API specification.

executionRequests: Array of DATA - List of execution layer triggered requests. Each list element is a requests byte array as defined by EIP-7685. The first byte of each element is the request_type and the remaining bytes are the request_data. Elements of the list MUST be ordered by request_type in ascending order. Elements with empty request_data MUST be excluded from the list. If any element is out of order, has a length of 1-byte or shorter, or more than one element has the same type byte, client software MUST return -32602: Invalid params error.