package octez-shell-libs
- Overview
- No Docs
You can search for identifiers within the package.
in-package search v0.2.0
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_discovery/index.html
Module Tezos_p2p.P2p_discovery
Source
Local peer discovery.
This module manages the discovery of local peers through UDP broadcasting. It is composed of two workers:
- The sender worker whose role is to broadcast discovery messages.
- The answer worker whose role is to listen discovery messages and register new peers in the current pool. Discovery messages are composed of an arbitrary key, the listening port and the peer id of the current peer.
Type of a discovery worker.
Source
val create :
listening_port:int ->
discovery_port:int ->
discovery_addr:Ipaddr.V4.t ->
trust_discovered_peers:bool ->
('a, 'b, 'c) P2p_pool.t ->
Tezos_base.TzPervasives.P2p_peer.Table.key ->
t
create ~listening_port ~discovery_port ~discovery_addr pool peer_id
returns a discovery worker registering local peers to the pool
and broadcasting discovery messages with the peer_id
and the listening_port
through the address discovery_addr:discovery_port
.
wakeup t
sends a signal to the sender machine of t
, asking it to immediately proceed to broadcasting.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>