package tezos-protocol-005-PsBabyM1
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=43723d096307603703a1a89ed1b2eb202b365f5e7824b96b0cbf813b343a6cf7
sha512=b2a637f2e965000d3d49ad85277ca24d6cb07a1a7cf2bc69d296d8b03ad78c3eaa8e21e94b9162e62c2e11649cd03bc845b2a3dafe623b91065df69d47dc8e4f
doc/tezos-protocol-005-PsBabyM1.raw/Tezos_raw_protocol_005_PsBabyM1/Delegate_services/Baking_rights/index.html
Module Delegate_services.Baking_rights
Source
type t = {
level : Alpha_context.Raw_level.t;
delegate : Tezos_protocol_environment_005_PsBabyM1.Signature.Public_key_hash.t;
priority : int;
timestamp : Alpha_context.Timestamp.t option;
}
val get :
'a Tezos_protocol_environment_005_PsBabyM1.RPC_context.simple ->
?levels:Alpha_context.Raw_level.t list ->
?cycles:Alpha_context.Cycle.t list ->
?delegates:
Tezos_protocol_environment_005_PsBabyM1.Signature.public_key_hash list ->
?all:bool ->
?max_priority:int ->
'a ->
t list Tezos_protocol_environment_005_PsBabyM1.Error_monad.shell_tzresult
Tezos_protocol_environment_005_PsBabyM1.Lwt.t
Retrieves the list of delegates allowed to bake a block.
By default, it gives the best baking priorities for bakers that have at least one opportunity below the 64th priority for the next block.
Parameters levels
and cycles
can be used to specify the (valid) level(s) in the past or future at which the baking rights have to be returned. Parameter delegates
can be used to restrict the results to the given delegates. If parameter all
is true
, all the baking opportunities for each baker at each level are returned, instead of just the first one.
Returns the list of baking slots. Also returns the minimal timestamps that correspond to these slots. The timestamps are omitted for levels in the past, and are only estimates for levels later that the next block, based on the hypothesis that all predecessor blocks were baked at the first priority.