Tezos_raw_protocol_016_PtMumbai.Bakingtype ordered_slots = private {delegate : Tezos_protocol_environment_016_PtMumbai.Signature.public_key_hash;consensus_key : Tezos_protocol_environment_016_PtMumbai.Signature.public_key_hash;slots : Alpha_context.Slot.t list;}val endorsing_rights :
Alpha_context.context ->
Alpha_context.Level.t ->
(Alpha_context.context
* ordered_slots
Tezos_protocol_environment_016_PtMumbai.Signature.Public_key_hash.Map.t)
Tezos_protocol_environment_016_PtMumbai.Error_monad.tzresult
Tezos_protocol_environment_016_PtMumbai.Lwt.tFor a given level computes who has the right to include an endorsement in the next block.
This function is only used by the 'validators' RPC.
val endorsing_rights_by_first_slot :
Alpha_context.context ->
Alpha_context.Level.t ->
(Alpha_context.context
* (Alpha_context.Consensus_key.pk * int) Alpha_context.Slot.Map.t)
Tezos_protocol_environment_016_PtMumbai.Error_monad.tzresult
Tezos_protocol_environment_016_PtMumbai.Lwt.tComputes endorsing rights for a given level.
val bonus_baking_reward :
Alpha_context.context ->
endorsing_power:int ->
Alpha_context.Tez.t
Tezos_protocol_environment_016_PtMumbai.Error_monad.tzresultComputes the bonus baking reward depending on the endorsing power.