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

Remove genesis-hash and genesis-file arguments from cardano-node #683

Merged
merged 3 commits into from
Mar 18, 2020

Conversation

Jimbo4350
Copy link
Contributor

@Jimbo4350 Jimbo4350 commented Mar 16, 2020

Issue

Checklist

  • This PR contains all the work required to resolve the linked issue.

  • The work contained has sufficient documentation to describe what it does and how to do it.

  • The work has sufficient tests and/or testing.

  • I have committed clear and descriptive commits. Be considerate as somebody else will have to read these.

  • I have added the appropriate labels to this PR.

@Jimbo4350 Jimbo4350 added this to the S9 2020-03-26 milestone Mar 16, 2020
@Jimbo4350 Jimbo4350 added the priority medium issues/PRs that SHOULD be addressed. This should be done for the release, but acceptable if it doesn label Mar 16, 2020
@Jimbo4350 Jimbo4350 requested review from CodiePP and jbgi March 16, 2020 15:52
… genesis file will be read from the node's configuration yaml file and the genesis hash will be derived from the genesis file
@Jimbo4350 Jimbo4350 force-pushed the jordan/get-hash-from-genesis-file branch 2 times, most recently from fec140a to 05e1a08 Compare March 17, 2020 10:47
Copy link
Contributor

@CodiePP CodiePP left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am sure that a lot of the scripts won't work anymore. But, this can be fixed within this sprint.

@Jimbo4350 Jimbo4350 force-pushed the jordan/get-hash-from-genesis-file branch from 05e1a08 to 6291631 Compare March 17, 2020 13:13
@erikd
Copy link
Contributor

erikd commented Mar 17, 2020

I assume that these can still be overridden on the command line. If so 👍

@rhyslbw
Copy link
Contributor

rhyslbw commented Mar 18, 2020

@erikd

I assume that these can still be overridden on the command line. If so

Invalid option `--genesis-file'

Usage: cardano-node run --topology FILEPATH --database-path FILEPATH
                        [--delegation-certificate FILEPATH]
                        [--signing-key FILEPATH] [--socket-path FILEPATH]
                        [--host-addr HOST-NAME] --port PORT
                        --config NODE-CONFIGURATION [--validate-db]

Copy link
Contributor

@erikd erikd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought it was decided that the --genesis-file and --genesis-hash command line params need to override whatever is in the the config file.

@Jimbo4350
Copy link
Contributor Author

Jimbo4350 commented Mar 18, 2020

@erikd @rhyslbw It was my understanding that we wanted to reduce the number of arguments needed for cardano-node. DevOps still wanted the ability to specify socket-path from the command line (which remains but defaults to what is in the configuration yaml file if nothing is specified). It doesn't make sense to specify genesis-hash from the command line because we can derive the genesis hash from the genesis file.

So the question is, am I completely removing the ability to specify the genesis file from the command line (i.e it will be defined in the configuration yaml file) or am I leaving the ability to specify the genesis file on the command line (i.e if is it specified, it will override whatever is in the configuration yaml file)?

Copy link
Contributor

@erikd erikd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was getting the socket path confused with genesis-file and genesis-hash.

This is fine!

@Jimbo4350
Copy link
Contributor Author

bors r+

@iohk-bors
Copy link
Contributor

iohk-bors bot commented Mar 18, 2020

@iohk-bors iohk-bors bot merged commit 565dead into master Mar 18, 2020
@iohk-bors iohk-bors bot deleted the jordan/get-hash-from-genesis-file branch March 18, 2020 09:42
JaredCorduan added a commit that referenced this pull request Jul 21, 2021
JaredCorduan added a commit that referenced this pull request Jul 22, 2021
JaredCorduan added a commit that referenced this pull request Jul 22, 2021
JaredCorduan added a commit that referenced this pull request Jul 22, 2021
JaredCorduan added a commit that referenced this pull request Jul 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority medium issues/PRs that SHOULD be addressed. This should be done for the release, but acceptable if it doesn
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants