package octez-protocol-017-PtNairob-libs

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type loop_state
val create_loop_state : ?get_valid_blocks_stream:Baking_state.proposal Lwt_stream.t Lwt.t -> heads_stream:Baking_state.proposal Lwt_stream.t -> Operation_worker.t -> loop_state
val sleep_until : Tezos_base.TzPervasives.Time.Protocol.t -> unit Lwt.t option
val wait_next_event : timeout:[ `Timeout of Baking_state.timeout_kind ] Lwt.t -> loop_state -> (Baking_state.event option, Tezos_base.TzPervasives.error Tezos_base.TzPervasives.trace) Stdlib.result Lwt.t

An event monitor using the streams in loop_state (to create promises) and a timeout promise timeout. The function reacts to a promise being fulfilled by firing an event Baking_state.event.

OCaml

Innovation. Community. Security.