package octez-shell-libs

  1. Overview
  2. Docs
Octez shell libraries

Install

Dune Dependency

Authors

Maintainers

Sources

tezos-18.0.tar.gz
sha256=dbc3b675aee59c2c574e5d0a771193a2ecfca31e7a5bc5aed66598080596ce1c
sha512=b97ed762b9d24744305c358af0d20f394376b64bfdd758dd4a81775326caf445caa57c4f6445da3dd6468ff492de18e4c14af6f374dfcbb7e4d64b7b720e5e2a

doc/octez-shell-libs.p2p/Tezos_p2p/P2p_point_state/Info/index.html

Module P2p_point_state.InfoSource

Sourcetype 'conn t
Sourcetype 'conn point_info = 'conn t

Type of info associated to a point.

Sourceval compare : 'conn point_info -> 'conn point_info -> int

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.

Sourceval trusted : 'conn point_info -> bool

trusted pi is true iff pi has is trusted, i.e. "whitelisted".

Sourceval known_public : 'conn point_info -> bool

Points can announce themselves as either public or private. Private points will not be advertised to other nodes.

Sourceval set_trusted : 'conn point_info -> unit
Sourceval unset_trusted : 'conn point_info -> unit
Sourceval get_expected_peer_id : 'conn point_info -> Tezos_base.TzPervasives.P2p_peer.Id.t option

Return the expected_peer_id given to create.

Sourceval last_failed_connection : 'conn point_info -> 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

Sourceval reset_reconnection_delay : 'conn point_info -> unit
Sourceval cannot_reconnect_yet : now:Tezos_base.TzPervasives.Time.System.t -> 'conn point_info -> bool
Sourceval reconnection_time : 'conn point_info -> Tezos_base.TzPervasives.Time.System.t option
Sourceval log_incoming_rejection : timestamp:Tezos_base.TzPervasives.Time.System.t -> 'conn point_info -> Tezos_base.TzPervasives.P2p_peer.Id.t -> unit
OCaml

Innovation. Community. Security.