package octez-shell-libs
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=aa2f5bc99cc4ca2217c52a1af2a2cdfd3b383208cb859ca2e79ca0903396ca1d
sha512=d68bb3eb615e3dcccc845fddfc9901c95b3c6dc8e105e39522ce97637b1308a7fa7aa1d271351d5933febd7476b2819e1694f31198f1f0919681f1f9cc97cb3a
doc/octez-shell-libs.validation/Tezos_validation/Protocol_plugin/index.html
Module Tezos_validation.Protocol_plugin
Source
Type of a protocol accompanied with its main plugin (aka the validation & mempool plugin).
module No_plugin
(Proto : Tezos_protocol_updater.Registered_protocol.T) :
T
with type operation_data = Proto.operation_data
and type operation = Proto.operation
and type Mempool.t = Proto.Mempool.t
and type Plugin.info = unit
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.
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.
Emtpy metrics module. All metrics are -1.
Register a validation plugin for a specific protocol (according to its Proto.hash
).
val proto_with_validation_plugin :
block_hash:Tezos_base.TzPervasives.Block_hash.t ->
Tezos_base.TzPervasives.Protocol_hash.t ->
(module T) Tezos_base.TzPervasives.tzresult Lwt.t
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.
Looks for an rpc plug-in for a specific protocol.
Looks for a metrics plugin module for a specific protocol
Same as find_metrics
but returns Undefined_metrics_plugin
if not found