package octez-libs

  1. Overview
  2. Docs
A package that contains multiple base libraries used by the Octez suite

Install

Dune Dependency

Authors

Maintainers

Sources

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

doc/octez-libs.base/Tezos_base/Distributed_db_version/index.html

Module Tezos_base.Distributed_db_versionSource

Distributed_db protocol version.

Sourcemodule Name : sig ... end
Sourcetype t = private int

An abstract version number for the high-level Distributed_db messages.

Sourceval equal : t -> t -> bool
Sourceval compare : t -> t -> int
Sourceval pp : Format.formatter -> t -> unit
Sourceval encoding : t Data_encoding.t
Sourceval zero : t
Sourceval one : t

This version adds the following messages:

  • Get_checkpoint/Checkpoint for fetching the checkpoint of a peer.
  • Get_protocol_branch/Protocol_branch for fetching the branch of a peer given a protocol level.
  • Get_predecessor_header/Predecessor_header for fetching a block header given an offset from a block hash.

Those messages can help to implement a faster bootstrap.

Sourceval two : t

This version adds no messages. However, the semantics of the message Current_head is changed. In particular, a peer can send a message Current_head which was only prechecked but the block was not validated yet. This means that a peer which sends a Current_head message with a block for which the precheck function will return true but is invalid should not be kicked anymore.

OCaml

Innovation. Community. Security.