directory.ml
(*****************************************************************************)
(* *)
(* SPDX-License-Identifier: MIT *)
(* Copyright (c) 2023 Nomadic Labs. <contact@nomadic-labs.com> *)
(* *)
(*****************************************************************************)
let build_rpc_directory node_version config =
let dir = Tezos_shell.Version_directory.rpc_directory node_version in
let dir =
Tezos_shell.Config_directory.build_rpc_directory_for_rpc_process
~user_activated_upgrades:
config.Config_file.blockchain_network.user_activated_upgrades
~user_activated_protocol_overrides:
config.blockchain_network.user_activated_protocol_overrides
~dal_config:config.blockchain_network.dal_config
dir
in
Tezos_rpc.Directory.register0 dir Node_services.S.config (fun () () ->
Lwt.return_ok config)