package octez-shell-libs
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=55ea1fb8bb3273a7fc270ca8f650d45c56449665619482aad9bc12f3ea736b7e
sha512=fec850fc2d17d7490bbabd5147d62aad13b3aaed8774270f8a38ab419670ed03e0fd30cf8642a97984eca5c2446726fe590ad99c015f7ec50919dc7652f25053
doc/octez-shell-libs.p2p/Tezos_p2p/P2p_trigger/index.html
Module Tezos_p2p.P2p_trigger
Source
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
wait_too_few_connections t
resolves when the number of connections drops below the desired level.
wait_too_many_connections t
resolves when the number of connections exceeds the desired level.
wait_new_peer t
resolves when a new peer (i.e. authentication successful) gets added to the pool.
wait_new_point t
resolves when a new point gets registered to the pool.
wait_new_connection t
resolves when a new connection is successfully established in the pool.