Tezos_dal_node_lib.Configuration_file
Configuration settings for experimental features, with no backward compatibility guarantees.
type t = {
data_dir : string;
The path to the DAL node data directory.
*)rpc_addr : Tezos_base.TzPervasives.P2p_point.Id.t;
The TCP address the DAL node's RPC server listens to.
*)listen_addr : Tezos_base.TzPervasives.P2p_point.Id.t;
The TCP address bound by the DAL node.
*)public_addr : Tezos_base.TzPervasives.P2p_point.Id.t;
The TCP address at which this instance can be reached.
*)peers : string list;
The list of P2P peers to connect to at startup, in addition to the list given by L1 node's configuration parameter dal_config.bootstrap_peers.
*)expected_pow : float;
The expected PoW difficulty level for the peers' identity.
*)endpoint : Uri.t;
The endpoint of a Tezos L1 node.
*)slots_backup_uris : Uri.t list;
Backup URIs to fetch slot data if missing and unrecoverable from shards.
*)trust_slots_backup_uris : bool;
Whether to trust the data downlaoded from the provided HTTP backup URIs.
*)metrics_addr : Tezos_base.TzPervasives.P2p_point.Id.t option;
The TCP address of the node's server used to export metrics.
*)profile : Profile_manager.unresolved_profile;
The profiles determining the topics of interest.
*)history_mode : history_mode;
version : int;
The version of the configuration.
*)service_name : string;
Name of the service provided by this node.
*)service_namespace : string;
Namespace for the service.
*)experimental_features : experimental_features;
Experimental features.
*)fetch_trusted_setup : bool;
Should the trusted setup be downloaded if not found or has invalid hash.
*)verbose : bool;
Whether to emit detailed events for frequently received control messages from remote peers.
*)ignore_l1_config_peers : bool;
Ignore the boot(strap) peers provided by L1.
*)disable_amplification : bool;
Disable amplification.
*)}
val default : t
default
is the default configuration.
val store_path : t -> string
store_path config
returns a path for the store
default_config_file data_dir
constructs a default configuration file path from a data dir.
val save :
config_file:string ->
t ->
unit Tezos_base.TzPervasives.tzresult Lwt.t
save config
writes config file in config.data_dir
val load : config_file:string -> t Tezos_base.TzPervasives.tzresult Lwt.t
val identity_file : t -> string
identity_file config
returns the absolute path to the "identity.json" file of the DAL node, based on the configuration config
.
val peers_file : t -> string
peers_file config
returns the absolute path to the "peers.json" file of the DAL node, based on the configuration config
.