package octez-shell-libs
- Overview
- No Docs
You can search for identifiers within the package.
in-package search v0.2.0
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=ddfb5076eeb0b32ac21c1eed44e8fc86a6743ef18ab23fff02d36e365bb73d61
sha512=d22a827df5146e0aa274df48bc2150b098177ff7e5eab52c6109e867eb0a1f0ec63e6bfbb0e3645a6c2112de3877c91a17df32ccbff301891ce4ba630c997a65
doc/octez-shell-libs.p2p/Tezos_p2p/P2p_point_state/Info/index.html
Module P2p_point_state.Info
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
.
val last_rejected_connection :
'conn point_info ->
(Tezos_base.TzPervasives.P2p_peer.Id.t
* Tezos_base.TzPervasives.Time.System.t)
option
val last_established_connection :
'conn point_info ->
(Tezos_base.TzPervasives.P2p_peer.Id.t
* Tezos_base.TzPervasives.Time.System.t)
option
val last_disconnection :
'conn point_info ->
(Tezos_base.TzPervasives.P2p_peer.Id.t
* Tezos_base.TzPervasives.Time.System.t)
option
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
val cannot_reconnect_yet :
now:Tezos_base.TzPervasives.Time.System.t ->
'conn point_info ->
bool
val log_incoming_rejection :
timestamp:Tezos_base.TzPervasives.Time.System.t ->
'conn point_info ->
Tezos_base.TzPervasives.P2p_peer.Id.t ->
unit
val watch :
'conn t ->
Tezos_base.TzPervasives.P2p_point.Pool_event.t Lwt_stream.t
* Lwt_watcher.stopper