package octez-protocol-019-PtParisB-libs

  1. Overview
  2. Docs
Octez protocol 019-PtParisB libraries

Install

Dune Dependency

Authors

Maintainers

Sources

tezos-octez-v20.1.tag.bz2
sha256=ddfb5076eeb0b32ac21c1eed44e8fc86a6743ef18ab23fff02d36e365bb73d61
sha512=d22a827df5146e0aa274df48bc2150b098177ff7e5eab52c6109e867eb0a1f0ec63e6bfbb0e3645a6c2112de3877c91a17df32ccbff301891ce4ba630c997a65

doc/octez-protocol-019-PtParisB-libs.baking/Tezos_baking_019_PtParisB/Operation_worker/index.html

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.