P2p_peer.Info
type ('peer_meta, 'conn_meta) t = {
score : float;
trusted : bool;
conn_metadata : 'conn_meta option;
peer_metadata : 'peer_meta;
state : State.t;
id_point : P2p_connection.Id.t option;
stat : P2p_stat.t;
last_failed_connection : (P2p_connection.Id.t * Time.System.t) option;
last_rejected_connection : (P2p_connection.Id.t * Time.System.t) option;
last_established_connection : (P2p_connection.Id.t * Time.System.t) option;
last_disconnection : (P2p_connection.Id.t * Time.System.t) option;
last_seen : (P2p_connection.Id.t * Time.System.t) option;
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