Skip to content

Commit 8be11c0

Browse files
committed
byron-to-alonzo: TestXxxHardForkAtVersion removed due to deprecation in consensus
1 parent bfa6afb commit 8be11c0

File tree

1 file changed

+5
-28
lines changed

1 file changed

+5
-28
lines changed

scripts/byron-to-alonzo/mkfiles.sh

+5-28
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ set -o pipefail
1414
# One option to ensure you are running with repo matched cardano-cli and cardano-node
1515
# versions is to enter a nix shell: `nix shell .#cardano-cli .#cardano-node`
1616
#
17-
# There are three ways of triggering the transition to Shelley:
17+
# There are two ways of triggering the transition to Shelley:
1818
# 1. Trigger transition at protocol version 2.0.0 (as on mainnet).
1919
# The system starts at 0.0.0, and we can only increase it by 1 in the major
2020
# version, so this does require to:
@@ -24,24 +24,15 @@ set -o pipefail
2424
# b) wait for the protocol to change (end of the epoch, or end of the last
2525
# epoch if it's posted near the end of the epoch),
2626
#
27-
# c) change configuration.yaml to have 'LastKnownBlockVersion-Major: 2',
28-
# and restart the nodes
27+
# c) post an update proposal and votes to transition to 2.0.0
2928
#
30-
# d) post an update proposal and votes to transition to 2.0.0
29+
# d) change configuration.yaml to have 'LastKnownBlockVersion-Major: 2',
30+
# and restart the nodes
3131
#
3232
# This is what will happen on the mainnet, so it's vital to test this, but
3333
# it does contain some manual steps.
3434
#
35-
# 2. Trigger transition at protocol version 2.0.0.
36-
# For testing purposes, we can also modify the system to do the transition to
37-
# Shelley at protocol version 1.0.0, by uncommenting the line containing
38-
# 'TestShelleyHardForkAtVersion' below. Then, we just need to execute step a)
39-
# above in order to trigger the transition.
40-
#
41-
# This is still close to the procedure on the mainnet, and requires less
42-
# manual steps.
43-
#
44-
# 3. Starting in a declared era.
35+
# 2. Starting in a declared era.
4536
# If you want to start a node in a specific era epoch 0, supply the script
4637
# with a shelley, allegra, mary, alonzo string argument. E.g
4738
# mkfiles.sh mary. This is quite convenient, but it does not test that we
@@ -117,20 +108,6 @@ $SED -i "${ROOT}/configuration.yaml" \
117108
-e 's/LastKnownBlockVersion-Major: 0/LastKnownBlockVersion-Major: 1/' \
118109
-e 's/LastKnownBlockVersion-Minor: 2/LastKnownBlockVersion-Minor: 0/'
119110

120-
# To transition to Shelley with the default setup, we have to:
121-
#
122-
# - post an update proposal + votes to go to protocol version 1 using
123-
# scripts/byron-to-alonzo/update-1.sh
124-
#
125-
# - post another update proposal + votes to go to protocol version 2 and change
126-
# the configuration to have 'LastKnownBlockVersion-Major: 2' using
127-
# scripts/byron-to-alonzo/update-2.sh, and finally restart the nodes
128-
#
129-
# To make it easier to trigger the transition to Shelley, uncomment the next
130-
# code line to trigger the hardfork with protocol version 1 and then
131-
# scripts/byron-to-alonzo/update-2.sh can be skipped:
132-
# echo "TestShelleyHardForkAtVersion: 1" >> ${ROOT}/configuration.yaml
133-
134111
# Create the node directories
135112
for NODE in ${ALL_NODES}; do
136113
mkdir -p "${ROOT}/${NODE}/byron" "${ROOT}/${NODE}/shelley"

0 commit comments

Comments
 (0)