-
Notifications
You must be signed in to change notification settings - Fork 16
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
Cl/testnetdata #595
Cl/testnetdata #595
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Nice!
@@ -211,7 +211,7 @@ pGenesisCreateTestNetData envCli = | |||
<*> pNumUtxoKeys | |||
<*> pSupply | |||
<*> pSupplyDelegated | |||
<*> pNetworkId envCli | |||
<*> (optional $ pNetworkId envCli) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should update the parser's help text so the user knows this value will override the genesis file's value.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@CarlosLopezDeLara> when you do so, you will need to regenerate the golden files as follows:
RECREATE_GOLDEN_FILES=1 cabal test all
cardano-cli/test/cardano-cli-golden/Test/Golden/CreateTestnetData.hs
Outdated
Show resolved
Hide resolved
@@ -211,7 +211,7 @@ pGenesisCreateTestNetData envCli = | |||
<*> pNumUtxoKeys | |||
<*> pSupply | |||
<*> pSupplyDelegated | |||
<*> pNetworkId envCli | |||
<*> (optional $ pNetworkId envCli) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@CarlosLopezDeLara> when you do so, you will need to regenerate the golden files as follows:
RECREATE_GOLDEN_FILES=1 cabal test all
Co-Authored-By: Clément Hurlin <[email protected]>
4247d78
to
f63652c
Compare
Addressing @Jimbo4350 comments about updating the parser. We were using
This allows for better options, i.e.:
|
797bdff
to
33e0ddd
Compare
Move pNetworkForTestnetData to Common.hs
b72fe4e
to
e7cc21e
Compare
With that last changes now we have:
And help menu looks like this:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Changelog
Context
Resolves #591
How to trust this PR
Passing a network magic via the flag overrides the value on the template file
Using template file without using the --testnet-magic flag takes the value from the template
If no template is used the default template is used instead.
Checklist