package octez-shell-libs

  1. Overview
  2. Docs
Octez shell libraries

Install

Dune Dependency

Authors

Maintainers

Sources

tezos-18.0.tar.gz
sha256=dbc3b675aee59c2c574e5d0a771193a2ecfca31e7a5bc5aed66598080596ce1c
sha512=b97ed762b9d24744305c358af0d20f394376b64bfdd758dd4a81775326caf445caa57c4f6445da3dd6468ff492de18e4c14af6f374dfcbb7e4d64b7b720e5e2a

doc/octez-shell-libs.validation/Tezos_validation/Protocol_plugin/index.html

Module Tezos_validation.Protocol_pluginSource

Sourcemodule type T = sig ... end

Type of a protocol accompanied with its main plugin (aka the validation & mempool plugin).

Sourcemodule type RPC = sig ... end

Type of a protocol-specific RPC plug-in.

To use when no registered plugin is found. This module is functional; it just misses on the smarter logic that a plugin can add on top of the protocol.

Sourcemodule type METRICS = sig ... end

This is a protocol specific module that is used to collect all the * protocol-specific metrics. This module * allows to decode protocol data payload and provide back basic * types that can be used as metrics.

Sourcemodule Undefined_metrics_plugin (P : sig ... end) : METRICS

Emtpy metrics module. All metrics are -1.

Sourceval register_validation_plugin : (module T) -> unit

Register a validation plugin for a specific protocol (according to its Proto.hash).

Sourceval register_rpc : (module RPC) -> unit

Registers a RPC plug-in for a specific protocol

Sourceval register_metrics : (module METRICS) -> unit

Register a metrics plugin module

Retrieves the registered protocol with the provided hash and wraps it together with its validation plugin.

If no validation plugin has been registered for the protocol, then uses No_plugin which is functional, but not as smart as a protocol-specific plugin.

Returns the error Block_validator_errors.Unavailable_protocol when there is no registered protocol with the given hash.

The block_hash argument is only used as additional information for the potential aforementioned error.

Sourceval find_rpc : Tezos_base.TzPervasives.Protocol_hash.t -> (module RPC) option

Looks for an rpc plug-in for a specific protocol.

Sourceval find_metrics : Tezos_base.TzPervasives.Protocol_hash.t -> (module METRICS) option

Looks for a metrics plugin module for a specific protocol

Sourceval safe_find_metrics : Tezos_base.TzPervasives.Protocol_hash.t -> (module METRICS) Lwt.t

Same as find_metrics but returns Undefined_metrics_plugin if not found

OCaml

Innovation. Community. Security.