Tezos_dal_node_lib.Message_validation
val gossipsub_app_messages_validation :
Node_context.t ->
Tezos_crypto_dal.Cryptobox.t ->
int32 ->
Tezos_dal_node_services.Types.proto_parameters ->
?message:Tezos_dal_node_services.Types.Message.t ->
message_id:Tezos_dal_node_services.Types.Message_id.t ->
unit ->
[> `Invalid | `Outdated | `Unknown | `Valid ]
gossipsub_app_messages_validation ctxt cryptobox head_level
proto_parameters ?message ~message_id ()
validates a Gossipsub message and its associated message ID in the context of the given DAL node.
The validation follows a layered approach:
head_level
and proto_parameters.attestation_lag
plus some slack), it is marked as `Outdated
.`Invalid
.`Unknown
. accordingly.This function is intended to be registered as the Gossipsub validation hook.