package tezos-baking-alpha

  1. Overview
  2. Docs

Launch processes to gather operations from the mempool and make them available for the baker.

Datatypes

type t
val candidate_encoding : candidate Data_encoding.t
type voting_power = int

Constructors

val create : ?monitor_node_operations:bool -> Tezos_client_alpha.Protocol_client_context.full -> t Lwt.t

create ?monitor_node_operations cctxt creates a monitoring process to fetch operations for the baker to process.

  • parameter monitor_node_operations

    monitor operations on the node (defaults: true). Set monitor_node_operations to false to only consider externally provided (non-node) operations.

Accessors

val get_current_operations : t -> Operation_pool.pool
val get_quorum_event_stream : t -> event Lwt_stream.t

Observers

val monitor_preendorsement_quorum : t -> consensus_threshold:int -> get_preendorsement_voting_power: (slot:Tezos_protocol_alpha.Protocol.Alpha_context.Slot.t -> int) -> candidate -> unit Lwt.t
val monitor_endorsement_quorum : t -> consensus_threshold:int -> get_endorsement_voting_power: (slot:Tezos_protocol_alpha.Protocol.Alpha_context.Slot.t -> int) -> candidate -> unit Lwt.t
val cancel_monitoring : t -> unit
val shutdown_worker : t -> (unit, exn list) result Lwt.t