Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add check-node-configuration command #922

Closed
smelc opened this issue Oct 3, 2024 · 1 comment · Fixed by #923
Closed

Add check-node-configuration command #922

smelc opened this issue Oct 3, 2024 · 1 comment · Fixed by #923
Assignees

Comments

@smelc
Copy link
Contributor

smelc commented Oct 3, 2024

Context

We want to add a check-node-configuration command to cardano-cli to validate the hashes of genesis files in the node's configuration file. This will remove some work from cardano-testnet, and at the same time providing support to users. This has been discussed on input-output-hk/cardano-node-wiki#52.

Design decisions

  1. The command is in the debug top-level entry, because it is not dependent upon an era.
  2. The command has an optional --fix flag that will correct the hashes if they are incorrect, or write them if they are missing. By default this option is OFF, because we want this command to be a checker first and foremost.
  3. If a genesis hash is present, but the path to the genesis file is missing, the command doesn't fail, but issues a warning on stdout.
  4. byron is handled, and this is a pain, because its handling is different, but 🤷
@smelc smelc self-assigned this Oct 3, 2024
@smelc
Copy link
Contributor Author

smelc commented Oct 3, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant