-
Notifications
You must be signed in to change notification settings - Fork 15
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
create-testnet-data: add option to create constitutional committee members #961
base: master
Are you sure you want to change the base?
create-testnet-data: add option to create constitutional committee members #961
Conversation
2a4c664
to
8c952f8
Compare
8c952f8
to
a3ed90b
Compare
b6f391b
to
a4fe0d7
Compare
hotArgs = CC.GovernanceCommitteeKeyGenHotCmdArgs ConwayEraOnwardsConway vkeyHotFile skeyHotFile | ||
coldArgs = CC.GovernanceCommitteeKeyGenColdCmdArgs ConwayEraOnwardsConway vkeyColdFile skeyColdFile |
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.
Can we not hardcode the era here?
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.
Yes we can if we make create-testnet-data
only Conway onwards. Which makes sense, because it was introduced when we were developing conway. Right now we are incorrect, because nothing in create-testnet-data
is parameterized on the era (everything is Shelley onwards, including for example DReps).
@Jimbo4350> what do you think about making create-testnet-data
only Conway onwards?
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.
I would parameterize it on Era era
. We actually need to deprecate the BabbageEra
constructor of Era era
.
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.
I created a follow-up issue to avoid mixing this change in this PR: #962
cardano-cli/src/Cardano/CLI/EraBased/Run/Genesis/CreateTestnetData.hs
Outdated
Show resolved
Hide resolved
cardano-cli/src/Cardano/CLI/EraBased/Run/Governance/Committee.hs
Outdated
Show resolved
Hide resolved
cardano-cli/src/Cardano/CLI/EraBased/Run/Governance/Committee.hs
Outdated
Show resolved
Hide resolved
dbe6213
to
cd3de55
Compare
@@ -253,6 +255,26 @@ runGenesisCreateTestNetDataCmd | |||
|
|||
when (0 < numPools) $ writeREADME poolsDir poolsREADME | |||
|
|||
-- CC members | |||
ccColdKeys <- forM [1 .. numCommitteeKeys] $ \index -> do |
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.
Are we not missing a transient vs on disk distinction here?
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.
@Jimbo4350> Yes we do miss the distinction. I thought the transient case was not worth the extra effort for the constitutional committee, because I think having a committee with millions of members is not a case we likely want to spend resource testing.
WDYT? Do you want me to add a on-disk/transient distinction?
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.
I would check with @mgmeier
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.
Given the optional nature of creating constitutional committee keys, and the expected number of keys being vastly lower than for instance for DReps, there's no need for a transient mode from Performance & Tracing.
cd3de55
to
11ffe24
Compare
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! CI is still failing.
Note
Requires IntersectMBO/cardano-api#669
Changelog
Context
Fixes #757
How to trust this PR
Try it out:
Observe the resulting directory has the expected shape:
> tree create_testnet_out/cc-keys/ create_testnet_out/cc-keys/ ├── cc1 │ ├── cc.cold.skey │ ├── cc.cold.vkey │ ├── cc.hot.skey │ └── cc.hot.vkey ├── cc2 │ ├── cc.cold.skey │ ├── cc.cold.vkey │ ├── cc.hot.skey │ └── cc.hot.vkey └── README.md
And you can next open the various key files to see that the envelope is the correct one:
Checklist