package tezos-dal-node-lib
Tezos: `tezos-dal-node` library
Install
Dune Dependency
Authors
Maintainers
Sources
tezos-18.0.tar.gz
sha256=dbc3b675aee59c2c574e5d0a771193a2ecfca31e7a5bc5aed66598080596ce1c
sha512=b97ed762b9d24744305c358af0d20f394376b64bfdd758dd4a81775326caf445caa57c4f6445da3dd6468ff492de18e4c14af6f374dfcbb7e4d64b7b720e5e2a
doc/tezos-dal-node-lib.gossipsub/Tezos_dal_node_lib_gossipsub/Transport_layer_interface/index.html
Module Tezos_dal_node_lib_gossipsub.Transport_layer_interface
Source
This module defines the data structures used to instantiate the Octez P2P library. More exactly, it exposes:
- the types
p2p_message
,peer_metadata
andconnection_metadata
, used to instantiate type variables ofP2p.t
;
- the values
peer_metadata_cfg
of typeP2p_params.peer_meta_config
,conn_metadata_cfg
of typeP2p_params.conn_meta_config
andmessage_cfg
of typeP2p_params.message_config
that are used when callingP2p.create
.
Peers exchanged via PX. point
represents the (address, port) pair of the exchanged peer, while peer
represents the cryptographic identity of the peer.
Source
type p2p_message =
| Graft of {
topic : Gs_interface.topic;
}
| Prune of {
topic : Gs_interface.topic;
px : px_peer Tezos_base.TzPervasives.Seq.t;
backoff : Gs_interface.Span.t;
}
| IHave of {
topic : Gs_interface.topic;
message_ids : Gs_interface.message_id list;
}
| IWant of {
message_ids : Gs_interface.message_id list;
}
| Subscribe of {
topic : Gs_interface.topic;
}
| Unsubscribe of {
topic : Gs_interface.topic;
}
| Message_with_header of {
message : Gs_interface.message;
topic : Gs_interface.topic;
message_id : Gs_interface.message_id;
}
Without piggybacking, p2p_message
is almost identical to Gs_interface.p2p_message
, except that for the Prune
case, P2p_peer.Id.t
elements in px
are augmented by their P2p_point.Id.t
counterpart.
peer_metadata
is not used. So, its value is unit
.
connection_metadata
is not used currently. So, its value is unit
.
A P2P message config is parameterized by the network's name.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>