Validate_errors.Consensus
Errors that may arise while validating a consensus operation.
type Mavryk_protocol_environment_alpha.Error_monad.error +=
| Forbidden_delegate of Mavryk_protocol_environment_alpha.Signature.Public_key_hash.t
| Consensus_operation_not_allowed
| Consensus_operation_for_old_level of {
kind : consensus_operation_kind;
expected : Alpha_context.Raw_level.t;
provided : Alpha_context.Raw_level.t;
}
| Consensus_operation_for_future_level of {
kind : consensus_operation_kind;
expected : Alpha_context.Raw_level.t;
provided : Alpha_context.Raw_level.t;
}
| Consensus_operation_for_old_round of {
kind : consensus_operation_kind;
expected : Alpha_context.Round.t;
provided : Alpha_context.Round.t;
}
| Consensus_operation_for_future_round of {
kind : consensus_operation_kind;
expected : Alpha_context.Round.t;
provided : Alpha_context.Round.t;
}
| Wrong_payload_hash_for_consensus_operation of {
kind : consensus_operation_kind;
expected : Block_payload_hash.t;
provided : Block_payload_hash.t;
}
| Unexpected_preattestation_in_block
| Unexpected_attestation_in_block
| Preattestation_round_too_high of {
block_round : Alpha_context.Round.t;
provided : Alpha_context.Round.t;
}
| Wrong_slot_used_for_consensus_operation of {
kind : consensus_operation_kind;
}
| Conflicting_consensus_operation of {
kind : consensus_operation_kind;
conflict : operation_conflict;
}
Errors for preattestations and attestations.