package octez-protocol-019-PtParisB-libs

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

Module Tezos_baking_019_PtParisB.Operation_workerSource

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

Datatypes

Sourcetype t
Sourcetype candidate = {
  1. hash : Tezos_base.TzPervasives.Block_hash.t;
  2. round_watched : Tezos_protocol_019_PtParisB.Protocol.Alpha_context.Round.t;
  3. payload_hash_watched : Tezos_protocol_019_PtParisB.Protocol.Block_payload_hash.t;
}
Sourceval candidate_encoding : candidate Tezos_base.TzPervasives.Data_encoding.t
Sourcetype event =
  1. | Prequorum_reached of candidate * Tezos_protocol_019_PtParisB.Protocol.Alpha_context.Kind.preattestation Tezos_protocol_019_PtParisB.Protocol.Alpha_context.operation list
  2. | Quorum_reached of candidate * Tezos_protocol_019_PtParisB.Protocol.Alpha_context.Kind.attestation Tezos_protocol_019_PtParisB.Protocol.Alpha_context.operation list

Constructors

Sourceval create : ?monitor_node_operations:bool -> Tezos_client_019_PtParisB.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

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

Observers

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

Innovation. Community. Security.