Skip to content

Commit c9d30f5

Browse files
authored
Updates to running a local testnet (#541)
1 parent 9abb135 commit c9d30f5

File tree

4 files changed

+65
-14
lines changed

4 files changed

+65
-14
lines changed

content.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
export const replaceValues = {
2-
$$archwayVersion$$: 'v7.0.1',
2+
$$archwayVersion$$: 'v9.0.0',
33
};

content/4.validators/2.becoming-a-validator/2.requirements.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Ultimately, as the network becomes more heavily used, multi-gigabyte per day ban
3434

3535
## Monitoring and alerting
3636

37-
Monitoring and alerting systems are really useful to avoid slashing. Even if Phi Labs do not suggest any specific solution, we document the [Prometheus + Graphana](4.monitoring-validators.md) combination. Other tools that are usually used by validators in CosmosSDK-based blockchains include: DataDog, Panic, Cloudwatch, Netdata, Tenderduty.
37+
Monitoring and alerting systems are really useful to avoid slashing. Even if Phi Labs do not suggest any specific solution, we document the [Prometheus + Grafana](4.monitoring-validators.md) combination. Other tools that are usually used by validators in CosmosSDK-based blockchains include: DataDog, Panic, Cloudwatch, Netdata, Tenderduty.
3838

3939
## Security
4040

content/4.validators/2.becoming-a-validator/3.running-a-validator-node.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Binary
3939
::highlight-card
4040

4141
```bash
42-
archwayd add-genesis-account "$(archwayd keys show my-validator-account -a)" 10000000000000000000aarch
42+
archwayd genesis add-genesis-account "$(archwayd keys show my-validator-account -a)" 10000000000000000000aarch
4343
```
4444

4545
::
@@ -51,7 +51,7 @@ Docker
5151
::highlight-card
5252

5353
```bash
54-
docker run --rm -it -v ~/.archway:/root/.archway ghcr.io/archway-network/archway:$$archwayVersion$$ add-genesis-account <my-validator-account> 10000000000000000000aarch
54+
docker run --rm -it -v ~/.archway:/root/.archway ghcr.io/archway-network/archway:$$archwayVersion$$ genesis add-genesis-account <my-validator-account> 10000000000000000000aarch
5555
```
5656

5757
::
@@ -93,7 +93,7 @@ Binary
9393
::highlight-card
9494

9595
```bash
96-
archwayd gentx my-validator-account 9500000000000000000aarch --commission-rate 0.01 --commission-max-rate 0.1 --commission-max-change-rate 0.1 --pubkey "$(archwayd tendermint show-validator)" --chain-id archway-1 --fees 180000000000000000aarch
96+
archwayd genesis gentx my-validator-account 9500000000000000000aarch --commission-rate 0.01 --commission-max-rate 0.1 --commission-max-change-rate 0.1 --pubkey "$(archwayd tendermint show-validator)" --chain-id archway-1 --fees 180000000000000000aarch
9797
```
9898
::
9999

@@ -104,7 +104,7 @@ Docker
104104
::highlight-card
105105

106106
```bash
107-
docker run --rm -it -v ~/.archway:/root/.archway ghcr.io/archway-network/archway:$$archwayVersion$$ gentx my-validator-account 9500000000000000000aarch --commission-rate 0.01 --commission-max-rate 0.1 --commission-max-change-rate 0.1 --pubkey "$(archwayd tendermint show-validator)" --chain-id archway-1 --fees 180000000000000000aarch
107+
docker run --rm -it -v ~/.archway:/root/.archway ghcr.io/archway-network/archway:$$archwayVersion$$ genesis gentx my-validator-account 9500000000000000000aarch --commission-rate 0.01 --commission-max-rate 0.1 --commission-max-change-rate 0.1 --pubkey "$(archwayd tendermint show-validator)" --chain-id archway-1 --fees 180000000000000000aarch
108108
```
109109
::
110110

@@ -131,7 +131,7 @@ Binary
131131
::highlight-card
132132

133133
```bash
134-
archwayd collect-gentxs
134+
archwayd genesis collect-gentxs
135135

136136
```
137137
::
@@ -143,7 +143,7 @@ Docker
143143
::highlight-card
144144

145145
```bash
146-
docker run --rm -it -v ~/.archway:/root/.archway ghcr.io/archway-network/archway:$$archwayVersion$$ collect-gentxs
146+
docker run --rm -it -v ~/.archway:/root/.archway ghcr.io/archway-network/archway:$$archwayVersion$$ genesis collect-gentxs
147147
```
148148
::
149149

content/4.validators/2.becoming-a-validator/5.running-a-local-testnet.md

Lines changed: 57 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ For the first node, you would launch the following command in the **node1** fold
256256
::highlight-card
257257

258258
```bash
259-
archwayd add-genesis-account $(archwayd keys show node1-account -a --home ./node1) 100000000000000000000000000aarch --home ./node1
259+
archwayd genesis add-genesis-account "$(archwayd keys show node1-account -a --home ./node1)" 100000000000000000000000000aarch --home ./node1
260260
```
261261

262262
::
@@ -266,14 +266,14 @@ For the second node, you would launch the following command in the **node2** fol
266266
::highlight-card
267267

268268
```bash
269-
archwayd add-genesis-account $(archwayd keys show node1-account -a --home ./node2) 100000000000000000000000000aarch --home ./node1
269+
archwayd genesis add-genesis-account "$(archwayd keys show node1-account -a --home ../node2/node2)" 100000000000000000000000000aarch --home ./node1
270270
```
271271

272272
::
273273

274274
## Submit the genesis transaction
275275

276-
When running a Cosmos SDK-based blockchain, new validators need to submit a **gentx** transaction to the network to become a validator. The genesis transactions is the first transaction of the local chain, while the **collect-gentxs** command collects all the gentx transactions submitted by potential validators and creates a new genesis file that includes these transactions.
276+
When running a Cosmos SDK-based blockchain, new validators need to submit a **genesis gentx** transaction to the network to become a validator. The genesis transactions is the first transaction of the local chain, while the **genesis collect-gentxs** command collects all the gentx transactions submitted by potential validators and creates a new genesis file that includes these transactions.
277277

278278
The command typically involves the following steps:
279279

@@ -289,7 +289,8 @@ Now you will generate the genesis transaction to create the validator. The gense
289289

290290
::highlight-card
291291
```bash
292-
archwayd gentx node1-account 100000000000000000000000aarch --chain-id my-chain --fees 100000000000000000000aarch --home ./node1
292+
archwayd genesis gentx node1-account 100000000000000000000000aarch --chain-id my-chain --fees 100000000000000000000aarch --home ./node1
293+
archwayd genesis collect-gentxs --home ./node1
293294
```
294295
::
295296

@@ -328,12 +329,62 @@ nano ./node2/config/app.toml
328329

329330
Under the **gRPC Configuration** `[grpc]` section you will see the **address** settings. Change the value to the below:
330331

331-
`enable = true
332-
address=“0.0.0.0:9092”`
332+
```bash
333+
enable = true
334+
address=“0.0.0.0:9092”
335+
```
333336

334337
Under the **gRPC Web Configuration** `[grpc-web]` section you will see the **address** settings. Change the value to the below:
335338
`address=“0.0.0.0:9093”`
336339

340+
The network implements a minimum price of gas preventing a transaction to go through with a gas price lower than the value set. There is a corresponding value that is configurable within your node `minimum-gas-prices` that should be set to a value. This value can be 0 or the corresponding minimum gas price set by the network which you can find via:
341+
342+
::tab-card{noOfTabs=2}
343+
#title0
344+
mainnet
345+
346+
#desc0
347+
::highlight-card
348+
349+
```bash
350+
$(archwayd q rewards estimate-fees 1 --node 'https://rpc.mainnet.archway.io:443' --output json | jq -r '.gas_unit_price | (.amount + .denom)')
351+
```
352+
353+
354+
::
355+
356+
Try it:
357+
358+
::tryItButton
359+
360+
```bash
361+
archwayd q rewards estimate-fees 1 --node 'https://rpc.mainnet.archway.io:443' --output json | jq -r '.gas_unit_price | (.amount + .denom)'
362+
```
363+
::
364+
365+
#title1
366+
testnet
367+
368+
#desc1
369+
::highlight-card
370+
371+
```bash
372+
$(archwayd q rewards estimate-fees 1 --node 'https://rpc.constantine.archway.io:443' --output json | jq -r '.gas_unit_price | (.amount + .denom)')
373+
```
374+
375+
::
376+
377+
Try it:
378+
379+
::tryItButton
380+
381+
```bash
382+
archwayd q rewards estimate-fees 1 --node 'https://rpc.constantine.archway.io:443' --output json | jq -r '.gas_unit_price | (.amount + .denom)'
383+
```
384+
::
385+
386+
::
387+
337388
Save the file after making the above changes.
338389

339390
### Changes to the **config.toml** file

0 commit comments

Comments
 (0)