package octez-protocol-017-PtNairob-libs

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

Install

Dune Dependency

Authors

Maintainers

Sources

octez-19.0.tar.gz
sha256=c6df840ebbf115e454db949028c595bec558a59a66cade73b52a6d099d6fa4d4
sha512=d8aee903b9fe130d73176bc8ec38b78c9ff65317da3cb4f3415f09af0c625b4384e7498201fdb61aa39086a7d5d409d0ab3423f9bc3ab989a680cf444a79bc13

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.