package octez-protocol-018-Proxford-libs

  1. Overview
  2. Docs
Octez protocol 018-Proxford libraries

Install

Dune Dependency

Authors

Maintainers

Sources

octez-19.1.tar.gz
sha256=55ea1fb8bb3273a7fc270ca8f650d45c56449665619482aad9bc12f3ea736b7e
sha512=fec850fc2d17d7490bbabd5147d62aad13b3aaed8774270f8a38ab419670ed03e0fd30cf8642a97984eca5c2446726fe590ad99c015f7ec50919dc7652f25053

doc/octez-protocol-018-Proxford-libs.baking/Tezos_baking_018_Proxford/Baking_scheduling/index.html

Module Tezos_baking_018_Proxford.Baking_schedulingSource

Sourcetype loop_state
Sourceval 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
Sourceval sleep_until : Tezos_base.TzPervasives.Time.Protocol.t -> unit Lwt.t option
Sourceval retry : Tezos_client_018_Proxford.Protocol_client_context.full -> ?max_delay:float -> delay:float -> factor:float -> tries:int -> ?msg:string -> ('a -> 'b Tezos_base.TzPervasives.tzresult Lwt.t) -> 'a -> 'b Tezos_base.TzPervasives.tzresult Lwt.t

retry ctxt ~delay ?max_delay ~factor ~tries ?msg f x retries applying f x tries until it succeeds or returns an error different from Connection_failed, at most tries number of times. After each try it waits for a number of seconds, but not more than max_delay, if given. The wait time between tries is given by the initial delay, multiplied by factor at each subsequent try. At each failure, msg together with the current delay is printed using ctxt#message.

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.

Sourceval compute_next_round_time : Baking_state.state -> (Tezos_base.TzPervasives.Time.Protocol.t * Tezos_protocol_018_Proxford.Protocol.Alpha_context.Round.t) option
Sourceval first_potential_round_at_next_level : Baking_state.state -> earliest_round:Tezos_protocol_018_Proxford.Protocol.Alpha_context.Round.t -> (Tezos_protocol_018_Proxford.Protocol.Alpha_context.Round.t * Baking_state.consensus_key_and_delegate) option

Returns the first round at the next level, at or after earliest_round, whose baking slot belongs to one of our own delegates; also returns the corresponding delegate. Or returns None if no such round exists.

Sourceval compute_next_potential_baking_time_at_next_level : Baking_state.state -> (Tezos_base.TzPervasives.Time.Protocol.t * Tezos_protocol_018_Proxford.Protocol.Alpha_context.Round.t) option Lwt.t
OCaml

Innovation. Community. Security.