Skip to content

Commit 4cd63f4

Browse files
authored
doc: improve the page of setting up a validator node (#2012)
* doc: improve the page of setting up a validator node reorder the section about delegating state to the validator, and also explain how to add/update a validator's descriptive fields Signed-off-by: Long Zhang <[email protected]> * doc: use the original title, 'more' is not necessary here Signed-off-by: Long Zhang <[email protected]> --------- Signed-off-by: Long Zhang <[email protected]>
1 parent 7d79978 commit 4cd63f4

File tree

1 file changed

+79
-57
lines changed

1 file changed

+79
-57
lines changed

how-to-guides/validator-node.md

+79-57
Original file line numberDiff line numberDiff line change
@@ -30,60 +30,6 @@ First, follow the instructions on
3030

3131
Follow [the tutorial on creating a wallet](/how-to-guides/celestia-app-wallet.md).
3232

33-
### Delegate stake to a validator
34-
35-
Create an environment variable for the address:
36-
37-
```bash
38-
VALIDATOR_WALLET=<validator-wallet-name>
39-
```
40-
41-
If you want to delegate more stake to any validator, including your own you
42-
will need the `celestiavaloper` address of the validator in question. You can run
43-
the command below to get the `celestiavaloper` of your local validator wallet in
44-
case you want to delegate more to it:
45-
46-
```bash
47-
celestia-appd keys show $VALIDATOR_WALLET --bech val -a
48-
```
49-
50-
After entering the wallet passphrase you should see a similar output:
51-
52-
```bash
53-
Enter keyring passphrase:
54-
celestiavaloper1q3v5cugc8cdpud87u4zwy0a74uxkk6u43cv6hd
55-
```
56-
57-
To delegate tokens to the `celestiavaloper` validator, as an
58-
example you can run:
59-
60-
```bash-vue
61-
celestia-appd tx staking delegate \
62-
celestiavaloper1q3v5cugc8cdpud87u4zwy0a74uxkk6u4q4gx4p 1000000utia \
63-
--from=$VALIDATOR_WALLET --chain-id={{constants.mochaChainId}} \
64-
--fees=21000utia
65-
```
66-
67-
If successful, you should see a similar output as:
68-
69-
```console
70-
code: 0
71-
codespace: ""
72-
data: ""
73-
gas_used: "0"
74-
gas_wanted: "0"
75-
height: "0"
76-
info: ""
77-
logs: []
78-
raw_log: '[]'
79-
timestamp: ""
80-
tx: null
81-
txhash: <tx-hash>
82-
```
83-
84-
You can check if the TX hash went through using the block explorer by
85-
inputting the `txhash` ID that was returned.
86-
8733
## Optional: Deploy the celestia-node
8834

8935
Running a bridge node is critical to the Celestia network as it enables
@@ -167,8 +113,7 @@ Keep in mind that these steps are necessary ONLY if you want to participate
167113
in the consensus.
168114

169115
Pick a `moniker` name of your choice! This is the validator name that will show
170-
up on public dashboards and explorers. `VALIDATOR_WALLET` must be the same you
171-
defined previously. Parameter `--min-self-delegation=1000000` defines the
116+
up on public dashboards and explorers. `VALIDATOR_WALLET` is the name of the validator's wallet you have created previously. Parameter `--min-self-delegation=1000000` defines the
172117
amount of tokens that are self delegated from your validator wallet.
173118

174119
Now, connect to the network of your choice.
@@ -186,12 +131,16 @@ validator to Mocha:
186131

187132
```bash-vue
188133
MONIKER="your_moniker"
189-
VALIDATOR_WALLET="validator"
134+
VALIDATOR_WALLET="<validator-wallet-name>"
190135
191136
celestia-appd tx staking create-validator \
192137
--amount=1000000utia \
193138
--pubkey=$(celestia-appd tendermint show-validator) \
194139
--moniker=$MONIKER \
140+
--identity=<optional_identity_signature> \
141+
--website="<optional_validator_website>" \
142+
--security-contact="<optional_email_address_for_security_contact>" \
143+
--details="A short and optional description of the validator." \
195144
--chain-id={{constants.mochaChainId}} \
196145
--commission-rate=0.1 \
197146
--commission-max-rate=0.2 \
@@ -203,6 +152,25 @@ celestia-appd tx staking create-validator \
203152
--gas=220000
204153
```
205154

155+
:::tip NOTE
156+
The options `--identity`, `--website`, `--security-contact` and `--details` are optional. The `--identity` value is used to verify identity with systems like [Keybase](https://keybase.io/) or UPort. If you need to add or update the values of these descriptive fields when your validator is already created, you can use the following command (remove the options that you don't want to change the values for):
157+
158+
```bash
159+
celestia-appd tx staking edit-validator \
160+
--new-moniker=<new_validator_name> \
161+
--identity=<identity_signature> \
162+
--website="<validator_website>" \
163+
--security-contact="<email_address_for_security_contact>" \
164+
--details="New description of the validator." \
165+
--chain-id={{constants.mochaChainId}} \
166+
--from=$VALIDATOR_WALLET \
167+
--keyring-backend=test \
168+
--fees=21000utia \
169+
--gas=220000
170+
```
171+
172+
:::
173+
206174
You will be prompted to confirm the transaction:
207175

208176
```console
@@ -234,6 +202,60 @@ You should now be able to see your validator from
234202
After starting your node, please submit your node as a seed and peer to the
235203
[networks repository](https://github.com/celestiaorg/networks).
236204

205+
## Optional: Delegate stake to a validator
206+
207+
Create an environment variable for the address:
208+
209+
```bash
210+
VALIDATOR_WALLET=<validator-wallet-name>
211+
```
212+
213+
If you want to delegate more stake to any validator, including your own you
214+
will need the `celestiavaloper` address of the validator in question. You can run
215+
the command below to get the `celestiavaloper` of your local validator wallet in
216+
case you want to delegate more to it:
217+
218+
```bash
219+
celestia-appd keys show $VALIDATOR_WALLET --bech val -a
220+
```
221+
222+
After entering the wallet passphrase you should see a similar output:
223+
224+
```bash
225+
Enter keyring passphrase:
226+
celestiavaloper1q3v5cugc8cdpud87u4zwy0a74uxkk6u43cv6hd
227+
```
228+
229+
To delegate tokens to the `celestiavaloper` validator, as an
230+
example you can run:
231+
232+
```bash-vue
233+
celestia-appd tx staking delegate \
234+
<the_valoper_address_starts_with_celestiavaloper1...> 1000000utia \
235+
--from=$VALIDATOR_WALLET --chain-id={{constants.mochaChainId}} \
236+
--fees=21000utia
237+
```
238+
239+
If successful, you should see a similar output as:
240+
241+
```console
242+
code: 0
243+
codespace: ""
244+
data: ""
245+
gas_used: "0"
246+
gas_wanted: "0"
247+
height: "0"
248+
info: ""
249+
logs: []
250+
raw_log: '[]'
251+
timestamp: ""
252+
tx: null
253+
txhash: <tx-hash>
254+
```
255+
256+
You can check if the TX hash went through using the block explorer by
257+
inputting the `txhash` ID that was returned.
258+
237259
## Optional: Transaction indexer configuration options
238260

239261
Follow the instructions under

0 commit comments

Comments
 (0)