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

Module Tezos_p2p.P2p_triggerSource

This module defines some condition values for inter modules synchronization.

Conditions are triggered by P2p_pool and P2p_connect_handler. They are used in particular by the maintenance worker in P2p_maintenance. Conditions are always broadcast (and not signaled), waiters should take that into account and avoid side effects

Sourcetype t
Sourceval create : unit -> t
Sourceval wait_too_few_connections : t -> unit Lwt.t

wait_too_few_connections t resolves when the number of connections drops below the desired level.

Sourceval wait_too_many_connections : t -> unit Lwt.t

wait_too_many_connections t resolves when the number of connections exceeds the desired level.

Sourceval wait_new_peer : t -> unit Lwt.t

wait_new_peer t resolves when a new peer (i.e. authentication successful) gets added to the pool.

Sourceval wait_new_point : t -> unit Lwt.t

wait_new_point t resolves when a new point gets registered to the pool.

Sourceval wait_new_connection : t -> unit Lwt.t

wait_new_connection t resolves when a new connection is successfully established in the pool.

Sourceval broadcast_new_point : t -> unit
Sourceval broadcast_new_connection : t -> unit
Sourceval broadcast_new_peer : t -> unit
Sourceval broadcast_too_few_connections : t -> unit
Sourceval broadcast_too_many_connections : t -> unit
OCaml

Innovation. Community. Security.