package octez-protocol-017-PtNairob-libs

  1. Overview
  2. Docs
Octez protocol 017-PtNairob libraries

Install

Dune Dependency

Authors

Maintainers

Sources

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

doc/octez-protocol-017-PtNairob-libs.baking/Tezos_baking_017_PtNairob/Operation_worker/index.html

Module Tezos_baking_017_PtNairob.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_017_PtNairob.Protocol.Alpha_context.Round.t;
  3. payload_hash_watched : Tezos_protocol_017_PtNairob.Protocol.Block_payload_hash.t;
}
Sourceval candidate_encoding : candidate Tezos_base.TzPervasives.Data_encoding.t
Sourcetype event =
  1. | Prequorum_reached of candidate * Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Kind.preendorsement Tezos_protocol_017_PtNairob.Protocol.Alpha_context.operation list
  2. | Quorum_reached of candidate * Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Kind.endorsement Tezos_protocol_017_PtNairob.Protocol.Alpha_context.operation list

Constructors

Sourceval create : ?monitor_node_operations:bool -> Tezos_client_017_PtNairob.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_preendorsement_quorum : t -> consensus_threshold:int -> get_slot_voting_power: (slot:Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Slot.t -> int option) -> candidate -> unit Lwt.t
Sourceval monitor_endorsement_quorum : t -> consensus_threshold:int -> get_slot_voting_power: (slot:Tezos_protocol_017_PtNairob.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.