package octez-shell-libs

  1. Overview
  2. Docs
Octez shell libraries

Install

Dune Dependency

Authors

Maintainers

Sources

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

doc/octez-shell-libs.proxy/Tezos_proxy/Light_consensus/index.html

Module Tezos_proxy.Light_consensusSource

Sourcemodule Proof = Tezos_context_sigs.Context.Proof_types
Sourcetype input = {
  1. printer : Tezos_client_base.Client_context.printer;
  2. min_agreement : float;
    (*

    The same value as Light.sources.min_agreement

    *)
  3. chain : Tezos_shell_services.Block_services.chain;
    (*

    The chain considered

    *)
  4. block : Tezos_shell_services.Block_services.block;
    (*

    The block considered

    *)
  5. key : string list;
    (*

    The key of the context for which data is being requested

    *)
  6. mproof : Proof.tree Proof.t;
    (*

    The Merkle proof received from the endpoint providing data. It is much smaller than the whole context.

    *)
}

A container of input data needed to process a consensus.

Sourceval min_agreeing_endpoints : float -> int -> int

min_agreeing_endpoints min_agreement nb_endpoints returns the minimum number of endpoints that must agree for Make.consensus to return true. The first parameter should be Light.sources.min_agreement while the second parameter should be the length of Light.sources.endpoints.

Given RPCs specific to the light mode, obtain the consensus algorithm

OCaml

Innovation. Community. Security.