Skip to content

Commit

Permalink
Merge pull request #2005 from input-output-hk/single_alonzo_genesis
Browse files Browse the repository at this point in the history
Remove code for using multiple Alonzo genesis files
  • Loading branch information
mkoura authored Oct 26, 2023
2 parents 9a2364a + f63a70b commit 5159a93
Showing 1 changed file with 9 additions and 20 deletions.
29 changes: 9 additions & 20 deletions cardano_node_tests/cluster_scripts/conway_fast/start-cluster
Original file line number Diff line number Diff line change
Expand Up @@ -166,26 +166,15 @@ cardano_cli_log byron genesis genesis \

mv "$STATE_CLUSTER/byron-params.json" "$STATE_CLUSTER/byron/params.json"

gen_genesis() {
cardano_cli_log genesis create-staked \
--genesis-dir "$STATE_CLUSTER/create_staked" \
--testnet-magic "$NETWORK_MAGIC" \
--gen-pools "$NUM_POOLS" \
--gen-utxo-keys 1 \
--supply "$INIT_SUPPLY" \
--gen-stake-delegs "$NUM_POOLS" \
--supply-delegated "$DELEG_SUPPLY" \
--start-time "$START_TIME_SHELLEY"
}

if ! gen_genesis; then
echo "Failed to generate Alonzo genesis, retrying with a different genesis.alonzo.spec.json"
mv "$STATE_CLUSTER/create_staked/genesis.alonzo.spec.json" \
"$STATE_CLUSTER/create_staked/master-genesis.alonzo.spec.json"
mv "$STATE_CLUSTER/create_staked/release-genesis.alonzo.spec.json" \
"$STATE_CLUSTER/create_staked/genesis.alonzo.spec.json"
gen_genesis
fi
cardano_cli_log genesis create-staked \
--genesis-dir "$STATE_CLUSTER/create_staked" \
--testnet-magic "$NETWORK_MAGIC" \
--gen-pools "$NUM_POOLS" \
--gen-utxo-keys 1 \
--supply "$INIT_SUPPLY" \
--gen-stake-delegs "$NUM_POOLS" \
--supply-delegated "$DELEG_SUPPLY" \
--start-time "$START_TIME_SHELLEY"

mv "$STATE_CLUSTER/create_staked/delegate-keys" "$STATE_CLUSTER/shelley/delegate-keys"
mv "$STATE_CLUSTER/create_staked/genesis-keys" "$STATE_CLUSTER/shelley/genesis-keys"
Expand Down

0 comments on commit 5159a93

Please sign in to comment.