Mavryk_raw_protocol_002_PtBoreas.Baking
type ordered_slots = private {
delegate : Mavryk_protocol_environment_002_PtBoreas.Signature.public_key_hash;
consensus_key : Mavryk_protocol_environment_002_PtBoreas.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_002_PtBoreas.Signature.Public_key_hash.Map.t)
Mavryk_protocol_environment_002_PtBoreas.Error_monad.tzresult
Mavryk_protocol_environment_002_PtBoreas.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_002_PtBoreas.Error_monad.tzresult
Mavryk_protocol_environment_002_PtBoreas.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_002_PtBoreas.Error_monad.tzresult
Computes the bonus baking reward depending on the attestation power.