package tezos-protocol-alpha
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=aa2f5bc99cc4ca2217c52a1af2a2cdfd3b383208cb859ca2e79ca0903396ca1d
sha512=d68bb3eb615e3dcccc845fddfc9901c95b3c6dc8e105e39522ce97637b1308a7fa7aa1d271351d5933febd7476b2819e1694f31198f1f0919681f1f9cc97cb3a
doc/tezos_raw_protocol_alpha/Tezos_raw_protocol_alpha/Fitness_repr/index.html
Module Tezos_raw_protocol_alpha.Fitness_repr
Source
type Tezos_protocol_environment_alpha.Error_monad.error +=
| Invalid_fitness
| Wrong_fitness
| Outdated_fitness
| Locked_round_not_less_than_round of {
round : Round_repr.t;
locked_round : Round_repr.t;
}
val create :
level:Raw_level_repr.t ->
locked_round:Round_repr.t option ->
predecessor_round:Round_repr.t ->
round:Round_repr.t ->
t Tezos_protocol_environment_alpha.Error_monad.tzresult
val create_without_locked_round :
level:Raw_level_repr.t ->
predecessor_round:Round_repr.t ->
round:Round_repr.t ->
t
val from_raw :
Tezos_protocol_environment_alpha.Fitness.t ->
t Tezos_protocol_environment_alpha.Error_monad.tzresult
Returns the corresponding protocol fitness if the shell fitness has the expected version, given by Constants_repr.fitness_version_number. If the fitness' version is from a previous protocol version, then it raises an "outdated fitness" error. If the fitness version is higher then it raises an "invalid fitness" error.
val round_from_raw :
Tezos_protocol_environment_alpha.Fitness.t ->
Round_repr.t Tezos_protocol_environment_alpha.Error_monad.tzresult
Returns the round from a raw fitness. If the fitness is from a previous protocol, the returned value will be Round.zero.
val predecessor_round_from_raw :
Tezos_protocol_environment_alpha.Fitness.t ->
Round_repr.t Tezos_protocol_environment_alpha.Error_monad.tzresult
Returns the predecessor round from a raw fitness. If the fitness is from a previous protocol, the returned value will be Round.zero.
val locked_round_from_raw :
Tezos_protocol_environment_alpha.Fitness.t ->
Round_repr.t option Tezos_protocol_environment_alpha.Error_monad.tzresult
Returns the locked round from a raw fitness. If the fitness is from a previous version, the returned value will be None.
val check_except_locked_round :
t ->
level:Raw_level_repr.t ->
predecessor_round:Round_repr.t ->
unit Tezos_protocol_environment_alpha.Error_monad.tzresult
Validate only the part of the fitness for which information are available during begin_application