-
Notifications
You must be signed in to change notification settings - Fork 12
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
Make cardano create-testnet-data
register DReps and delegate stake delegators to them
#646
Conversation
@palas> Please complete this test to also test the new Probably a good opportunity to move this test to this non golden location, because it's actually not a golden test. |
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.
Great work @palas ❤️ I'm approving with the caveat that you add the tests I requested in comments above.
Also, can you augment the README file generated in the dreps keys folder, so that it mentions the new delegation relation?
af7d296
to
d8395b5
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.
Nice work! Can you test this with cardano-testnet
test suites?
Amen to that 😄 @palas> when you do so, you'll probably need to update some dependencies of |
d8395b5
to
d4d601c
Compare
abd2a7a
to
03b7872
Compare
I have tested it now and it passes after doing these modifications: IntersectMBO/cardano-node@043c48c |
9661091
to
7f90226
Compare
…legators to them - Create default conway genesis file and register DReps - Delegate vote to DReps - Add option to not write DReps to disk and update tests - Pass template conway genesis spec as parameter - Add alonzo genesis parameter with default - Separate insecure key generation from pool assignation - Change distribution algorithm so that remainder is distributed - Refactor stake delegator creation to use same code for `OnDisk` and `Transient` - Use generateInsecureSigningKey for generating DReps - Improve generated README.md for DReps folder - Move transient test and check no dir created - Add basic checks about Conway genesis to test - Invalidate Hydra cache - Ensure deposit for DReps is at least what ConwayGenesis says
7f90226
to
c028789
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.
Nice 👍
Changelog
Context
In order to do realistic benchmarking we need to have DReps be registered and to exercise delegation, before this PR DReps were simply extra keys that were generated. We also want it to be possible to generate keys without writing them to disk (other than from the bit in the genesis file), so that tests scale better.
This PR depends on #482 in
cardano-api
in order to not re-add dependencies tocardano-cli
. It may be a good idea to review both simultaneously.How to trust this PR
Check that the conversion of the keys is done correctly, that the right things are being delegated, and that refactorings didn't alter the behaviour of existing code.
Checklist