package octez-protocol-020-PsParisC-libs

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Tezos_baking_020_PsParisC.State_transitionsSource

This module, and in particular the step function, modifies the automaton state, while Baking_actions performs potentially failing side-effects.

Sourcetype proposal_acceptance =
  1. | Invalid
  2. | Outdated_proposal
  3. | Valid_proposal
Sourceval is_acceptable_proposal_for_current_level : Baking_state.state -> Baking_state.proposal -> proposal_acceptance Lwt.t
Sourceval may_update_proposal : is_proposal_applied:bool -> Baking_state.state -> Baking_state.proposal -> Baking_state.state Lwt.t
Sourceval extract_pqc : Baking_state.state -> Baking_state.proposal -> (Tezos_protocol_020_PsParisC.Protocol.Alpha_context.Kind.preattestation Tezos_protocol_020_PsParisC.Protocol.Alpha_context.operation list * Tezos_protocol_020_PsParisC.Protocol.Alpha_context.Round.t) option
Sourceval handle_proposal : is_proposal_applied:bool -> Baking_state.state -> Baking_state.proposal -> (Baking_state.state * Baking_actions.action) Lwt.t
Sourceval propose_block_action : Baking_state.state -> Baking_state.consensus_key_and_delegate -> Tezos_protocol_020_PsParisC.Protocol.Alpha_context.Round.t -> last_proposal:Baking_state.proposal -> Baking_actions.action Lwt.t

Propose a block at the start of the given round for the given delegate, given that there was already a proposal at the current level, the last one being last_proposal.

Sourceval end_of_round : Baking_state.state -> Tezos_protocol_020_PsParisC.Protocol.Alpha_context.Round.t -> (Baking_state.state * Baking_actions.action) Lwt.t

Increase the current round and propose at the new round (same level), if the baker has a proposer slot.

Sourceval time_to_prepare_next_level_block : Baking_state.state -> Tezos_protocol_020_PsParisC.Protocol.Alpha_context.Round.t -> (Baking_state.state * Baking_actions.action) Lwt.t

Propose for the first time at a level at the given round. There was no previous proposal at the current level.

Sourceval update_locked_round : Baking_state.state -> Tezos_protocol_020_PsParisC.Protocol.Alpha_context.Round.t -> Tezos_protocol_020_PsParisC.Protocol.Block_payload_hash.t -> Baking_state.state
Sourceval prequorum_reached_when_awaiting_preattestations : Baking_state.state -> Operation_worker.candidate -> Tezos_protocol_020_PsParisC.Protocol.Alpha_context.Kind.preattestation Tezos_protocol_020_PsParisC.Protocol.Alpha_context.operation list -> (Baking_state.state * Baking_actions.action) Lwt.t
Sourceval quorum_reached_when_waiting_attestations : Baking_state.state -> Operation_worker.candidate -> Tezos_protocol_020_PsParisC.Protocol.Alpha_context.Kind.attestation Tezos_protocol_020_PsParisC.Protocol.Alpha_context.operation list -> (Baking_state.state * Baking_actions.action) Lwt.t
OCaml

Innovation. Community. Security.