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

Fix byron-to-alonzo/mkfiles.sh script for conway #4972

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions configuration/cardano/shelley_qa-conway-genesis.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"genDelegs": {}
}
4 changes: 3 additions & 1 deletion scripts/byron-to-alonzo/mkfiles.sh
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ $SED -i ${ROOT}/configuration.yaml \
-e 's|GenesisFile: genesis.json|ByronGenesisFile: byron/genesis.json|' \
-e '/ByronGenesisFile/ aShelleyGenesisFile: shelley/genesis.json' \
-e '/ByronGenesisFile/ aAlonzoGenesisFile: shelley/genesis.alonzo.json' \
-e '/ByronGenesisFile/ aConwayGenesisFile: shelley/genesis.conway.json' \
-e 's/RequiresNoMagic/RequiresMagic/' \
-e 's/LastKnownBlockVersion-Major: 0/LastKnownBlockVersion-Major: 1/' \
-e 's/LastKnownBlockVersion-Minor: 2/LastKnownBlockVersion-Minor: 0/'
Expand Down Expand Up @@ -309,9 +310,10 @@ echo "====================================================================="
# Set up our template
mkdir shelley

# Copy the QA testnet alonzo genesis which is equivalent to the mainnet
# Copy the QA testnet alonzo and conway genesis files which is equivalent to the mainnet

cp ../configuration/cardano/shelley_qa-alonzo-genesis.json shelley/genesis.alonzo.spec.json
cp ../configuration/cardano/shelley_qa-conway-genesis.json shelley/genesis.conway.spec.json

cardano-cli genesis create --testnet-magic ${NETWORK_MAGIC} --genesis-dir shelley

Expand Down