package octez-libs

  1. Overview
  2. Docs
type ('peer_meta, 'conn_meta) t = {
  1. score : float;
  2. trusted : bool;
  3. conn_metadata : 'conn_meta option;
  4. peer_metadata : 'peer_meta;
  5. state : State.t;
  6. id_point : P2p_connection.Id.t option;
  7. stat : P2p_stat.t;
  8. last_failed_connection : (P2p_connection.Id.t * Time.System.t) option;
  9. last_rejected_connection : (P2p_connection.Id.t * Time.System.t) option;
  10. last_established_connection : (P2p_connection.Id.t * Time.System.t) option;
  11. last_disconnection : (P2p_connection.Id.t * Time.System.t) option;
  12. last_seen : (P2p_connection.Id.t * Time.System.t) option;
  13. last_miss : (P2p_connection.Id.t * Time.System.t) option;
}
val encoding : 'peer_meta Data_encoding.t -> 'conn_meta Data_encoding.t -> ('peer_meta, 'conn_meta) t Data_encoding.t
OCaml

Innovation. Community. Security.