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.p2p/Tezos_p2p/P2p_protocol/index.html

Module Tezos_p2p.P2p_protocolSource

This module defines constructor for the private and default P2p_answerer.t. Both pass messages `Message msg` to the upper-layer. The private answerer ignore all other messages.

Sourcetype ('msg, 'peer, 'conn) config = {
  1. swap_linger : Tezos_base.TzPervasives.Time.System.Span.t option;
    (*

    Peer swapping does not occur more than once during a timespan of swap_linger. If None, the swap mechanism is disabled.

    *)
  2. pool : ('msg, 'peer, 'conn) P2p_pool.t;
  3. log : Tezos_base.TzPervasives.P2p_connection.P2p_event.t -> unit;
  4. connect : Tezos_base.TzPervasives.P2p_point.Id.t -> ('msg, 'peer, 'conn) P2p_conn.t Tezos_base.TzPervasives.tzresult Lwt.t;
  5. mutable latest_accepted_swap : Tezos_base.TzPervasives.Time.System.t;
  6. mutable latest_successful_swap : Tezos_base.TzPervasives.Time.System.t;
}

The config type contains "global" values and configuration option used by the default answerer, known when setting up the connection handler in P2p

Sourceval create_default : ('msg, 'peer, 'conn) config -> 'msg P2p_answerer.t
Sourceval create_private : unit -> 'msg P2p_answerer.t
OCaml

Innovation. Community. Security.