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/P2p_version/index.html

Module Tezos_base.P2p_versionSource

P2p-layer protocol version.

Sourcetype t = private int

An abstract version number for the low-level P2P layer.

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

Features

Sourcetype feature =
  1. | Nack_with_list

Any new network-protocol feature should be declared here, and the feature_available function should be updated accordingly. This avoid to clutter the code base with hardcoded version comparisons.

Sourceval feature_available : feature -> t -> bool

feature_available feature version returns true if the feature is known to be available for the given p2p protocol version.

OCaml

Innovation. Community. Security.