package octez-protocol-alpha-libs

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

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

Datatypes

type t

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.

Utilities

Accessors

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

Observers

val monitor_preattestation_quorum : t -> consensus_threshold:int -> get_slot_voting_power: (slot:Tezos_protocol_alpha.Protocol.Alpha_context.Slot.t -> int option) -> candidate -> unit Lwt.t
val monitor_attestation_quorum : t -> consensus_threshold:int -> get_slot_voting_power: (slot:Tezos_protocol_alpha.Protocol.Alpha_context.Slot.t -> int option) -> candidate -> unit Lwt.t
val cancel_monitoring : t -> unit
val shutdown_worker : t -> (unit, exn list) result Lwt.t
OCaml

Innovation. Community. Security.