Skip to content

Commit

Permalink
Update ADR 5 with output of last week's discussions
Browse files Browse the repository at this point in the history
  • Loading branch information
smelc committed Sep 30, 2024
1 parent 411f345 commit 6251410
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions docs/ADR-5-cardano-testnet-node-configuration-file.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,18 @@ Programmatic users proceed as follows instead:

## Add a new command in the CLI

Introduce a new `conway genesis check-node-config file` command in `cardano-cli`. It will have the following options:
Introduce a new `debug check-node-configuration FILEPATH` command in `cardano-cli`. It will have the following options:

```
[--byron-genesis FILEPATH]
[--shelley-genesis FILEPATH]
[--alonzo-genesis FILEPATH]
[--conway-genesis FILEPATH]
[--node-config FILEPATH]
--node-configuration-file FILEPATH
[--fix-configuration-file]
```
For every `--era-genesis` file, the command will read the file specified at the given `FILEPATH`, hash its content and check that the file specified at `--node-config` contains the correct path and the correct hash for this genesis file.

Option `-node-configuration-file` specifies the path of the file to check. The optional flag `--fix-configuration-file` lets `cardano-cli` fix the wrong genesis hashes (or fill them in) in the file specified by `--node-configuration-file`. By default (i.e. when `--fix-configuration-file` is not specified), `check-node-configuration` only checks that the genesis hashes are correct: it doesn't correct them.

## Have `create-testnet-data` create the node configuration file

1. Have `create-testnet-data` create a default node configuration file (populating it with the paths and hashes of the genesis files).
2. Add a `--node-config-template` optional option to `create-testnet-data which will be used to generate the node configuration file, instead of using a default one.
Have `create-testnet-data` create a default node configuration file (populating it with the paths and hashes of the genesis files).

# Consequences

Expand Down

0 comments on commit 6251410

Please sign in to comment.