package tezos-dal-node-lib
module Types = Tezos_dal_node_services.Types
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.
type p2p_message =
| Graft of {
topic : Types.Topic.t;
}
| Prune of {
topic : Types.Topic.t;
px : px_peer Tezos_base.TzPervasives.Seq.t;
backoff : Types.Span.t;
}
| IHave of {
topic : Types.Topic.t;
message_ids : Types.Message_id.t list;
}
| IWant of {
message_ids : Types.Message_id.t list;
}
| Subscribe of {
topic : Types.Topic.t;
}
| Unsubscribe of {
topic : Types.Topic.t;
}
| Message_with_header of {
message : Types.Message.t;
topic : Types.Topic.t;
message_id : Types.Message_id.t;
}
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.
val p2p_message_encoding : p2p_message Tezos_base.TzPervasives.Data_encoding.t
val pp_p2p_message : Format.formatter -> p2p_message -> unit
val message_config :
network_name:string ->
p2p_message Tezos_base.TzPervasives.P2p_params.message_config
A P2P message config is parameterized by the network's name.
val version : network_name:string -> Tezos_base.TzPervasives.Network_version.t
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>