package tezt-tezos

  1. Overview
  2. Docs

Sc node configuration files.

val filename : t -> string

Returns the configuration file name for a rollup node.

val read : t -> Tezt.JSON.t

Read the configuration file (config.json) of an sc node.

val write : t -> Tezt.JSON.t -> unit

Write the configuration file of an sc node, replacing the existing one.

val update : t -> (Tezt.JSON.t -> Tezt.JSON.t) -> unit

Update the configuration file of an sc node. If the sc node is already running, it needs to be restarted manually.

Example: Node.Config_file.update node (JSON.put ("p2p", new_p2p_config))

OCaml

Innovation. Community. Security.