Mavryk_raw_protocol_alpha.Baking
type ordered_slots = private {
delegate : Mavryk_protocol_environment_alpha.Signature.public_key_hash;
consensus_key : Mavryk_protocol_environment_alpha.Signature.public_key_hash;
slots : Alpha_context.Slot.t list;
}
val attesting_rights :
Alpha_context.context ->
Alpha_context.Level.t ->
(Alpha_context.context
* ordered_slots
Mavryk_protocol_environment_alpha.Signature.Public_key_hash.Map.t)
Mavryk_protocol_environment_alpha.Error_monad.tzresult
Mavryk_protocol_environment_alpha.Lwt.t
For a given level computes who has the right to include an attestation in the next block.
val attesting_rights_by_first_slot :
Alpha_context.context ->
Alpha_context.Level.t ->
(Alpha_context.context
* (Alpha_context.Consensus_key.pk * int * int) Alpha_context.Slot.Map.t)
Mavryk_protocol_environment_alpha.Error_monad.tzresult
Mavryk_protocol_environment_alpha.Lwt.t
Computes attesting rights for a given level.
val bonus_baking_reward :
Alpha_context.context ->
attestation_power:int ->
Alpha_context.Tez.t Mavryk_protocol_environment_alpha.Error_monad.tzresult
Computes the bonus baking reward depending on the attestation power.