-
Notifications
You must be signed in to change notification settings - Fork 734
Basic docs on making a shelley chain from scratch #893
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
Conversation
It was using the wrong file type for the utxo keys, and not creating the signing key. Change it to reuse the same code as for the other command that creates utxo keys. For collecting the keys to put into the genesis file, use the same method as for the other keys: scan the directory and collect them all. This makes it possible to use with manually created utxo keys.
The number of genesis keys to make and the number of utxo keys should be independent.
Derive the dir names in only once place. Create the directories only once. Expect parent dirs to exist.
This is actually useful. This means that by default the create-genesis command will just pick up existing files that are there already, either that have been created manually or from previous invocations of create-genesis where some keys were generated. This makes it convenient to re-generate the genesis with minor changes rather than re-creating all the keys. This takes advantage of the behaviour where it scans the directories for files of the expected names.
When making a genesis file manually, one needs a way to get from a genesis initial utxo key file to the address that one stuffs into the genesis InitialFunds mapping.
For address rendering.
@@ -0,0 +1,518 @@ | |||
# Making a Shelley blockchain from scratch |
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.
💯
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!
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!
-> FilePath | ||
-> ExceptT CliError IO (Map (GenKeyHash TPraosStandardCrypto) | ||
(KeyHash TPraosStandardCrypto)) | ||
readGenDelegsMap gendir deldir = 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.
👍
--gen-genesis-keys 3 \ | ||
--gen-utxo-keys 2 | ||
``` | ||
Yes [ONE MILLION LOVELACE](https://www.youtube.com/watch?v=l91ISfcuzDw). |
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.
🤣
bors merge |
Build succeeded |
Basic walk through, so far just covering genesis construction. Also fix a few things to make it true.