package octez-shell-libs
Octez shell libraries
Install
Dune Dependency
Authors
Maintainers
Sources
octez-19.1.tar.gz
sha256=55ea1fb8bb3273a7fc270ca8f650d45c56449665619482aad9bc12f3ea736b7e
sha512=fec850fc2d17d7490bbabd5147d62aad13b3aaed8774270f8a38ab419670ed03e0fd30cf8642a97984eca5c2446726fe590ad99c015f7ec50919dc7652f25053
doc/octez-shell-libs.p2p/Tezos_p2p/P2p_point_state/Info/index.html
Module P2p_point_state.Info
Source
Source
val create :
?trusted:bool ->
?expected_peer_id:Tezos_base.TzPervasives.P2p_peer.Id.t ->
Tezos_base.TzPervasives.P2p_addr.t ->
Tezos_base.TzPervasives.P2p_addr.port ->
'conn point_info
create ~trusted addr port
is a freshly minted point_info. If trusted
is true, this point is considered trusted and will be treated as such. If expected_peer_id
is specified, we check during a connection that the id
received is the same as the expected_peer_id
.
trusted pi
is true
iff pi
has is trusted, i.e. "whitelisted".
Points can announce themselves as either public or private. Private points will not be advertised to other nodes.
Return the expected_peer_id
given to create
.
Source
val last_rejected_connection :
'conn point_info ->
(Tezos_base.TzPervasives.P2p_peer.Id.t
* Tezos_base.TzPervasives.Time.System.t)
option
Source
val last_established_connection :
'conn point_info ->
(Tezos_base.TzPervasives.P2p_peer.Id.t
* Tezos_base.TzPervasives.Time.System.t)
option
Source
val last_disconnection :
'conn point_info ->
(Tezos_base.TzPervasives.P2p_peer.Id.t
* Tezos_base.TzPervasives.Time.System.t)
option
Source
val last_seen :
'conn point_info ->
(Tezos_base.TzPervasives.P2p_peer.Id.t
* Tezos_base.TzPervasives.Time.System.t)
option
last_seen pi
is the most recent of:
* last established connection * last rejected connection * last disconnection
last_miss pi
is the most recent of:
* last failed connection * last rejected connection * last disconnection
Source
val cannot_reconnect_yet :
now:Tezos_base.TzPervasives.Time.System.t ->
'conn point_info ->
bool
Source
val log_incoming_rejection :
timestamp:Tezos_base.TzPervasives.Time.System.t ->
'conn point_info ->
Tezos_base.TzPervasives.P2p_peer.Id.t ->
unit
Source
val watch :
'conn t ->
Tezos_base.TzPervasives.P2p_point.Pool_event.t Lwt_stream.t
* Lwt_watcher.stopper
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>