pub fn validate_block_access_list_presence(
version: EngineApiMessageVersion,
message_validation_kind: MessageValidationKind,
has_block_access_list: bool,
) -> Result<(), EngineObjectValidationError>Available on crate feature
node-api only.Expand description
Validates the presence of the block access list field for the engine method version.
engine_newPayloadV5 and engine_newPayloadV6 take an ExecutionPayloadV4, so the field must
be Some; every other method must leave it None. Presence does not depend on the payload
timestamp, so a well-formed payload outside the method’s fork reaches the fork check in
validate_payload_timestamp and fails with -38005: Unsupported fork.