package octez-shell-libs
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=dbc3b675aee59c2c574e5d0a771193a2ecfca31e7a5bc5aed66598080596ce1c
sha512=b97ed762b9d24744305c358af0d20f394376b64bfdd758dd4a81775326caf445caa57c4f6445da3dd6468ff492de18e4c14af6f374dfcbb7e4d64b7b720e5e2a
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.