Module Tezos_dal_node_lib.Daemon

val run : ?disable_shard_validation:bool -> ignore_pkhs:Tezos_crypto.Signature.public_key_hash list -> data_dir:string -> config_file:string -> configuration_override:(Configuration_file.t -> Configuration_file.t) -> unit -> unit Tezos_base.TzPervasives.tzresult Lwt.t

run ?disable_shard_validation ~ignore_pkhs ~data_dir ~configuration_override () starts a DAL node with the given data directory and function to generate an initial configuration.

This function performs the following steps:

  • Loads the configuration from the provided data directory, or uses a default configuration if none is found. The configuration is then potentially overridden by configuration_override;
  • Fetches the DAL configuration from the L1 node;
  • Creates and starts a Gossipsub worker for handling pub/sub messaging;
  • Initializes/opens the store for persisting node data;
  • Starts a crawler for the L1 node;
  • Initializes the node context, containing differents stores, caches and configurations;
  • Starts the RPC server to handle incoming RPC requests;
  • Connects the Gossipsub worker with the P2P layer and to the crawler;
  • Can disable the shard validation using ?disable_shard_validation.
  • Does not propagate message with topics related to the pkhs in ignore_pkhs.