package tezos-dal-node-lib

  1. Overview
  2. Docs
Tezos: `tezos-dal-node` library

Install

Dune Dependency

Authors

Maintainers

Sources

octez-19.0.tar.gz
sha256=c6df840ebbf115e454db949028c595bec558a59a66cade73b52a6d099d6fa4d4
sha512=d8aee903b9fe130d73176bc8ec38b78c9ff65317da3cb4f3415f09af0c625b4384e7498201fdb61aa39086a7d5d409d0ab3423f9bc3ab989a680cf444a79bc13

doc/tezos-dal-node-lib.gossipsub/Tezos_dal_node_lib_gossipsub/Transport_layer_interface/index.html

Module Tezos_dal_node_lib_gossipsub.Transport_layer_interfaceSource

This module defines the data structures used to instantiate the Octez P2P library. More exactly, it exposes:

  • the types p2p_message, peer_metadata and connection_metadata, used to instantiate type variables of P2p.t;
  • the values peer_metadata_cfg of type P2p_params.peer_meta_config, conn_metadata_cfg of type P2p_params.conn_meta_config and message_cfg of type P2p_params.message_config that are used when calling P2p.create.

Peers exchanged via PX. point represents the (address, port) pair of the exchanged peer, while peer represents the cryptographic identity of the peer.

Sourcetype p2p_message =
  1. | Graft of {
    1. topic : Types.Topic.t;
    }
  2. | Prune of {
    1. topic : Types.Topic.t;
    2. px : px_peer Tezos_base.TzPervasives.Seq.t;
    3. backoff : Types.Span.t;
    }
  3. | IHave of {
    1. topic : Types.Topic.t;
    2. message_ids : Types.Message_id.t list;
    }
  4. | IWant of {
    1. message_ids : Types.Message_id.t list;
    }
  5. | Subscribe of {
    1. topic : Types.Topic.t;
    }
  6. | Unsubscribe of {
    1. topic : Types.Topic.t;
    }
  7. | Message_with_header of {
    1. message : Types.Message.t;
    2. topic : Types.Topic.t;
    3. message_id : Types.Message_id.t;
    }

Without piggybacking, p2p_message is almost identical to Gs_interface.p2p_message, except that for the Prune case, P2p_peer.Id.t elements in px are augmented by their P2p_point.Id.t counterpart.

Sourceval message_config : network_name:string -> p2p_message Tezos_base.TzPervasives.P2p_params.message_config

A P2P message config is parameterized by the network's name.

Sourceval version : network_name:string -> Tezos_base.TzPervasives.Network_version.t
OCaml

Innovation. Community. Security.