package tezos-protocol-alpha

  1. Overview
  2. Docs
Tezos/Protocol: economic-protocol definition

Install

Dune Dependency

Authors

Maintainers

Sources

tezos-16.1.tar.gz
sha256=43723d096307603703a1a89ed1b2eb202b365f5e7824b96b0cbf813b343a6cf7
sha512=b2a637f2e965000d3d49ad85277ca24d6cb07a1a7cf2bc69d296d8b03ad78c3eaa8e21e94b9162e62c2e11649cd03bc845b2a3dafe623b91065df69d47dc8e4f

doc/tezos-protocol-alpha.raw/Tezos_raw_protocol_alpha/Fitness_repr/index.html

Module Tezos_raw_protocol_alpha.Fitness_reprSource

Sourcetype Tezos_protocol_environment_alpha.Error_monad.error +=
  1. | Invalid_fitness
  2. | Wrong_fitness
  3. | Outdated_fitness
  4. | Locked_round_not_less_than_round of {
    1. round : Round_repr.t;
    2. locked_round : Round_repr.t;
    }
Sourcetype t
Sourceval 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
Sourceval create_without_locked_round : level:Raw_level_repr.t -> predecessor_round:Round_repr.t -> round:Round_repr.t -> t

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.

Returns the round from a raw fitness. If the fitness is from a previous protocol, the returned value will be Round.zero.

Returns the predecessor round from a raw fitness. If the fitness is from a previous protocol, the returned value will be Round.zero.

Sourceval 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

Sourceval check_locked_round : t -> locked_round:Round_repr.t option -> unit Tezos_protocol_environment_alpha.Error_monad.tzresult

Validate the locked_round component of the fitness, which could not be validated during begin_application.

Sourceval level : t -> Raw_level_repr.t
Sourceval round : t -> Round_repr.t
Sourceval locked_round : t -> Round_repr.t option
Sourceval predecessor_round : t -> Round_repr.t
OCaml

Innovation. Community. Security.