Module Libp2p.Config

type t = {
timeout : Core.Time.Span.t;
initial_peers : Mina_net2.Multiaddr.t list;
addrs_and_ports : Node_addrs_and_ports.t;
metrics_port : int option;
conf_dir : string;
chain_id : string;
logger : Logger.t;
unsafe_no_trust_ip : bool;
isolate : bool;
trust_system : Trust_system.t;
flooding : bool;
direct_peers : Mina_net2.Multiaddr.t list;
peer_exchange : bool;
peer_protection_ratio : float;
seed_peer_list_url : Uri.t option;
min_connections : int;
time_controller : Block_time.Controller.t;
max_connections : int;
pubsub_v1 : pubsub_topic_mode_t;
pubsub_v0 : pubsub_topic_mode_t;
validation_queue_size : int;
mutable keypair : Mina_net2.Keypair.t;
all_peers_seen_metric : bool;
known_private_ip_nets : Core.Unix.Cidr.t list;
}
val make : timeout:Core.Time.Span.t -> ?initial_peers:Mina_net2.Multiaddr.t list -> addrs_and_ports:Node_addrs_and_ports.t -> ?metrics_port:int -> conf_dir:string -> chain_id:string -> logger:Logger.t -> unsafe_no_trust_ip:bool -> isolate:bool -> trust_system:Trust_system.t -> flooding:bool -> ?direct_peers:Mina_net2.Multiaddr.t list -> peer_exchange:bool -> peer_protection_ratio:float -> ?seed_peer_list_url:Uri.t -> min_connections:int -> time_controller:Block_time.Controller.t -> max_connections:int -> pubsub_v1:pubsub_topic_mode_t -> pubsub_v0:pubsub_topic_mode_t -> validation_queue_size:int -> keypair:Mina_net2.Keypair.t -> all_peers_seen_metric:bool -> ?known_private_ip_nets:Core.Unix.Cidr.t list -> unit -> t