You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Shelley-testnet/Exercise-1.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,7 @@ This should be everything that you need to get you up and running.
38
38
39
39
### Exercises
40
40
41
-
1. Download, Build and Install the Cardano Node Software using the instructions in the [Cardano Tutorial](../node-setup/020_keys_and_addresses.md). You may need to do this repeatedly, so you may want to bookmark the instructions. You will need to use the correctly tagged version at each stage. The most recent tag at the time of writing is 1.13.0.
41
+
1. Download, Build and Install the Cardano Node Software using the instructions in the [Cardano Tutorial](../node-setup/000_install.md). You may need to do this repeatedly, so you may want to bookmark the instructions. You will need to use the correctly tagged version at each stage. The most recent tag at the time of writing is 1.13.0.
42
42
43
43
2. Download the genesis, topology, and configuration files, as described in the tutorial.
@@ -59,14 +65,16 @@ Please report any bugs through the cardano-node and cardano-tutorials github rep
59
65
If you don’t know what to choose, set the cost to 256 ada,
60
66
the margin to 0.07 (i.e. 7%)
61
67
and the pledge to 1,000 ada.
68
+
69
+
You will also need to specify the metadata URL and hash for your pool from Step 1.
62
70
63
-
2.Pledge some stake to your stake pool.
71
+
3.Pledge some stake to your stake pool.
64
72
You do this by creating a delegation certificate (as you did in
65
73
[Exercise 4](Exercise-4.md)) that delegates
66
74
enough stake from the "owner staking key" specified in the registration certificate
67
75
to your own pool to cover your pledge promise.
68
76
69
-
3.Register the pool online.
77
+
4.Register the pool online.
70
78
Registration is done by submitting a transaction that contains the
71
79
pool registration certificate.
72
80
You can include the pledge delegation certificate in the same transaction.
@@ -79,47 +87,49 @@ In addition to the usual transaction fees, you will also have to pay the
79
87
Note that this transaction will have to be signed by the payment key,
80
88
the cold key and the staking key.
81
89
82
-
4.Start your stake pool, and link it to the relay node as you did in
90
+
5.Start your stake pool, and link it to the relay node as you did in
83
91
[Exercise 3](Exercise-3.md).
84
92
85
93
cardano-node run ...
86
94
87
-
5.Advertise that your pool is running.
95
+
6.Obtain your stake pool id
96
+
97
+
cardano-cli shelley stake-pool id ...
98
+
99
+
If necessary, advertise that your pool is running using the P2P and off-chain registration workarounds that are described in the tutorials.
88
100
89
-
__Note:__ At the time of writing, there is no way to determine your pool id yet. Please use the CBOR-hex from the cold key verification file instead.
90
101
91
-
6.Check that you are delegating to your own pool,
102
+
7.Check that you are delegating to your own pool through the pledge address,
92
103
then wait until the following epoch (around 6 hours),
93
104
and confirm that your pool is producing blocks by e.g. inspecting the log data.
94
105
Also confirm that your pool is receiving the correct rewards.
95
106
Congratulations, you are now a fully fledged Shelley Testnet pool operator!
96
107
97
-
__Note:__ At the time of writing, there is no way to check rewards yet. This feature is coming very soon.
98
108
99
-
7.Optional Exercise (Easy).
109
+
8.Optional Exercise (Easy).
100
110
101
111
Persuade other Testnet users to delegate to your pool.
102
112
103
-
8.Optional Exercise (Medium).
113
+
9.Optional Exercise (Medium).
104
114
105
115
Join forces with one or more other Testnet stakepool operators
106
116
to run a new stake pool that you jointly own.
107
117
What happens if you fail to collectively meet the pledge that you have promised?
108
118
109
-
9.Optional Exercise (Easy).
119
+
10.Optional Exercise (Easy).
110
120
111
121
Change your pool’s cost, margin and pledge.
112
122
What is the effect on the rewards that you receive?
113
123
How long does it take for the change to take effect?
114
124
115
-
10. Optional Exercise (Easy).
125
+
11. Optional Exercise (Easy).
116
126
117
127
Retire (de-register) your original pool, and start a new one with different cost,
118
-
margin and pledge. Update your pool advertisement.
128
+
margin and pledge. Update your pool advertisement if you need to.
119
129
120
-
11. Optional Exercise (Medium).
130
+
12. Optional Exercise (Medium).
121
131
122
-
Set up two stake pools, each behind its own relay node.
132
+
Set up two new stake pools, each behind its own relay node.
123
133
Advertise both pools.
124
134
125
135
You have now successfully set up and run your own stake pool and learnt the basics of how to manage it. In the final exercises, we will test some operational parameters that are relevant to running a pool and see how to submit more forms of transaction.
Copy file name to clipboardExpand all lines: Shelley-testnet/solutions/Exercise-2-solutions.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,7 @@ Let's create a second __payment key pair__ and __address__ (You should have crea
36
36
37
37
**Generate Payment Key Pair**
38
38
39
-
$ cardano-cli shelley address key-gen \
39
+
cardano-cli shelley address key-gen \
40
40
--verification-key-file payment2.vkey \
41
41
--signing-key-file payment2.skey
42
42
@@ -83,10 +83,10 @@ This has created another set of keys, these ones will later allow us to delegate
83
83
84
84
Now we will use both `payment2.vkey` and `stake2.vkey`to build a **payment address**. This will link our payment address to our **stake keys** and **stake address**.
85
85
86
-
$ cardano-cli shelley address build \
86
+
cardano-cli shelley address build \
87
87
--payment-verification-key-file payment2.vkey \
88
88
--stake-verification-key-file stake2.vkey \
89
-
--out-file payment2.addr
89
+
--out-file payment2.addr \
90
90
--testnet-magic 42
91
91
92
92
@@ -96,7 +96,7 @@ And, now generate you stake address. This will collect your rewards from delegat
96
96
97
97
cardano-cli shelley stake-address build \
98
98
--staking-verification-key-file stake2.vkey \
99
-
--out-file stake2.addr
99
+
--out-file stake2.addr \
100
100
--testnet-magic 42
101
101
102
102
@@ -106,13 +106,13 @@ And, now generate you stake address. This will collect your rewards from delegat
106
106
107
107
To create our transaction we will need the protocl parameters, so let's query the parameters and save them in `protocol.json`
108
108
109
-
$ cardano-cli shelley query protocol-parameters \
109
+
cardano-cli shelley query protocol-parameters \
110
110
--testnet-magic 42 \
111
111
--out-file protocol.json
112
112
113
113
We also need the UTXO details of the __payment.addr__ that will send the funds.
114
114
115
-
$ cardano-cli shelley query utxo \
115
+
cardano-cli shelley query utxo \
116
116
--address $(cat payment.addr) \
117
117
--testnet-magic 42
118
118
@@ -144,7 +144,7 @@ So we are currently on slot 266201, __Let's make our transaction TTL 267500__. W
144
144
145
145
**CALCULATE FEE**
146
146
147
-
Our transaction will have 1 input (tx-in-count), the UTXO from our sending address `e757f0...5d8cf` from above, and 2 outputs (tx-in-count), the receiveing address (payment2.addr) and a second ouput to send the change (payment.addr)
147
+
Our transaction will have 1 input (tx-in-count), the UTXO from our sending address `e757f0...5d8cf` from above, and 2 outputs (tx-out-count), the receiving address (payment2.addr) and a second ouput to send the change (payment.addr)
If you are using a different flavor of Linux, you will need to use the package manager suitable for your platform instead of `yum` or `apt-get`, and the names of the packages you need to install might differ.
42
42
@@ -82,7 +82,7 @@ Above instructions install Cabal version `3.2.0.0`. You can check the version by
(Please note: although this command usually completes very quickly, under some conditions it could take severl minutes or even hours to complete.)
46
+
47
+
48
+
IMPORTANT: Extra funds can be returned to 00677291d73b71471afa49fe2d20b96f7227b05f863dafe802598964533e0dc3bc0cf7eb8153441db271a2288560378b209014350792f273bdc307f06ca34f0c6f
0 commit comments