package octez-protocol-018-Proxford-libs

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

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

type proposal_acceptance =
  1. | Invalid
  2. | Outdated_proposal
  3. | Valid_proposal
val is_acceptable_proposal_for_current_level : Baking_state.state -> Baking_state.proposal -> proposal_acceptance Lwt.t
val may_update_proposal : is_proposal_applied:bool -> Baking_state.state -> Baking_state.proposal -> Baking_state.state Lwt.t
val handle_proposal : is_proposal_applied:bool -> Baking_state.state -> Baking_state.proposal -> (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.

Propose (if possible) for the first time at a new level.

OCaml

Innovation. Community. Security.