package octez-protocol-017-PtNairob-libs

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

Install

Dune Dependency

Authors

Maintainers

Sources

tezos-18.1.tar.gz
sha256=aa2f5bc99cc4ca2217c52a1af2a2cdfd3b383208cb859ca2e79ca0903396ca1d
sha512=d68bb3eb615e3dcccc845fddfc9901c95b3c6dc8e105e39522ce97637b1308a7fa7aa1d271351d5933febd7476b2819e1694f31198f1f0919681f1f9cc97cb3a

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.