package tezos-baking-012-Psithaca

  1. Overview
  2. Docs
type loop_state
val sleep_until : Tezos_base.TzPervasives.Time.Protocol.t -> unit Lwt.t option

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.

val compute_next_round_time : Baking_state.state -> (Tezos_base.TzPervasives.Time.Protocol.t * Tezos_protocol_012_Psithaca.Protocol.Alpha_context.Round.t) option
val first_potential_round_at_next_level : Baking_state.state -> earliest_round:Tezos_protocol_012_Psithaca.Protocol.Alpha_context.Round.t -> (Tezos_protocol_012_Psithaca.Protocol.Alpha_context.Round.t * Baking_state.delegate) option
val compute_next_potential_baking_time_at_next_level : Baking_state.state -> (Tezos_base.TzPervasives.Time.Protocol.t * Tezos_protocol_012_Psithaca.Protocol.Alpha_context.Round.t) option Lwt.t