docs: update the testnet docs
This commit is contained in:
parent
d41612b891
commit
9794007231
@ -27,10 +27,11 @@ Hardware
|
||||
sudo rm -rf /usr/local/go
|
||||
```
|
||||
|
||||
1.2) Install latest/required Go version (installing `go1.16.7`)
|
||||
1.2) Install latest/required Go version (installing `go1.17.2`)
|
||||
|
||||
```
|
||||
curl https://dl.google.com/go/go1.16.7.linux-amd64.tar.gz | sudo tar -C/usr/local -zxvf -
|
||||
curl https://golang.org/dl/go1.17.2.linux-amd64.tar.gz
|
||||
sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go1.17.2.linux-amd64.tar.gz
|
||||
```
|
||||
|
||||
1.3) Update env variables to include `go`
|
||||
@ -87,7 +88,7 @@ server_name: ethermintd
|
||||
**Not required if you have already initialized before**
|
||||
|
||||
```
|
||||
ethermintd init <your-node-moniker> --chain-id ethermint_9000-1
|
||||
ethermintd init <your-node-moniker> --chain-id ethermint_81337-1
|
||||
```
|
||||
|
||||
On running the above command, node will be initialized with default configuration. (config files will be saved in node's
|
||||
@ -97,41 +98,67 @@ NOTE: Backup node and validator keys . You will need to use these keys at a late
|
||||
|
||||
---
|
||||
|
||||
**Execute below instructions only after publishing of final genesis file**
|
||||
|
||||
genesis file will be published to [vulcanize//testnets/ethermint_9000-1](https://github.com/vulcanize/testnets)
|
||||
|
||||
# B) Starting Node
|
||||
|
||||
TBU
|
||||
## 1) Download Final Genesis
|
||||
|
||||
Use `curl` to download the genesis file
|
||||
**Replace your **genesis** file with published genesis file**
|
||||
|
||||
```shell
|
||||
curl http://167.172.173.94:26657/genesis > .ethermintd/config/genesis.json
|
||||
```
|
||||
|
||||
## 3) Start the Node
|
||||
Verify sha256 hash of genesis file with the below command
|
||||
|
||||
```
|
||||
jq -S -c -M '' ~/.ethermintd/config/genesis.json | shasum -a 256
|
||||
```
|
||||
|
||||
genesis sha256 hash should be
|
||||
|
||||
```
|
||||
4e5b68b5652a608c44c33e669c84ac179d9c0e301f958b5448f037a53c5cbb4e
|
||||
```
|
||||
|
||||
## 2) Update Peers & Seeds in config.toml
|
||||
|
||||
```
|
||||
peers="5ad2e6c35f2c84ff3ee31d89a95b34d92cb6afb1@157.230.101.237:26656,defc95b08547b6ef254723ad9621967a7e819020@161.35.223.44:26656"
|
||||
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" ~/.ethermintd/config/config.toml
|
||||
```
|
||||
|
||||
## 3) Start the Full Node
|
||||
|
||||
#### 3.1) Start node as `systemctl` service
|
||||
|
||||
3.1.1) Create the service file
|
||||
|
||||
```
|
||||
|
||||
sudo tee /etc/systemd/system/ethermintd.service > /dev/null <<EOF
|
||||
[Unit]
|
||||
Description=EthermintD Daemon After=network-online.target
|
||||
Description=EthermintD Daemon
|
||||
After=network-online.target
|
||||
|
||||
[Service]
|
||||
User=$USER ExecStart=$(which ethermintd) start --gql-playground --gql-server Restart=always RestartSec=3
|
||||
User=$USER
|
||||
ExecStart=$(which ethermintd) start --gql-playground --gql-server
|
||||
Restart=always
|
||||
RestartSec=3
|
||||
LimitNOFILE=65535
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target EOF
|
||||
WantedBy=multi-user.target
|
||||
EOF
|
||||
|
||||
```
|
||||
|
||||
3.1.2) Load service and start
|
||||
```
|
||||
|
||||
sudo systemctl daemon-reload sudo systemctl enable ethermintd sudo systemctl start ethermintd
|
||||
```
|
||||
sudo systemctl daemon-reload
|
||||
sudo systemctl enable ethermintd
|
||||
sudo systemctl start ethermintd
|
||||
|
||||
```
|
||||
|
||||
|
@ -27,10 +27,11 @@ Hardware
|
||||
sudo rm -rf /usr/local/go
|
||||
```
|
||||
|
||||
1.2) Install latest/required Go version (installing `go1.16.7`)
|
||||
1.2) Install latest/required Go version (installing `go1.17.2`)
|
||||
|
||||
```
|
||||
curl https://dl.google.com/go/go1.16.7.linux-amd64.tar.gz | sudo tar -C/usr/local -zxvf -
|
||||
curl https://golang.org/dl/go1.17.2.linux-amd64.tar.gz
|
||||
sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go1.17.2.linux-amd64.tar.gz
|
||||
```
|
||||
|
||||
1.3) Update env variables to include `go`
|
||||
@ -87,7 +88,7 @@ server_name: ethermintd
|
||||
**Not required if you have already initialized before**
|
||||
|
||||
```
|
||||
ethermintd init <your-node-moniker> --chain-id ethermint_9000-1
|
||||
ethermintd init <your-node-moniker> --chain-id ethermint_81337-1
|
||||
```
|
||||
|
||||
On running the above command, node will be initialized with default configuration. (config files will be saved in node's
|
||||
@ -117,15 +118,15 @@ recover accounts at a later point in time.
|
||||
## 7) Add Genesis Account
|
||||
|
||||
```
|
||||
ethermintd add-genesis-account <key-name> 50000000uwire
|
||||
ethermintd add-genesis-account <key-name> 4500000000000000agnt
|
||||
```
|
||||
|
||||
## 8) Create Your `gentx`
|
||||
|
||||
```
|
||||
ethermintd gentx <key-name> 50000000uwire \
|
||||
ethermintd gentx <key-name> 4500000000000000agnt \
|
||||
--pubkey=$(ethermintd tendermint show-validator) \
|
||||
--chain-id="ethermint_9000-1" \
|
||||
--chain-id="ethermint_81337-1" \
|
||||
--moniker="my-moniker" \
|
||||
--website="https://yourweb.site" \
|
||||
--details="description of my validator" \
|
||||
@ -151,7 +152,7 @@ NOTE: (Do NOT use space in the file name)
|
||||
To submit the gentx file, follow the below process:
|
||||
|
||||
- Fork the [testnets]() repository
|
||||
- Upload your gentx file in `ethermint_9000-1/gentxs` folder
|
||||
- Upload your gentx file in `ethermint_81337-1/config/gentxs` folder
|
||||
- Submit Pull Request to [testnets]() with name `ADD <your-moniker> gentx`
|
||||
|
||||
---
|
||||
|
@ -11,7 +11,7 @@
|
||||
### 2. Create Account & Get test tokens
|
||||
|
||||
```
|
||||
ethermintd keys add <key-name>
|
||||
ethermintd keys add <key-name> --keyring-backend test
|
||||
```
|
||||
|
||||
NOTE: Save `mnemonic` and related account details (public key). You will need to use the need mnemonic/private key to
|
||||
@ -19,7 +19,10 @@ recover accounts at a later point in time.
|
||||
|
||||
##### Get Test tokens from faucet
|
||||
|
||||
- TBU
|
||||
- Open this link : http://167.172.173.94:1314/ and paste your account
|
||||
- 1 gnt = 10^18 agnt
|
||||
- Each Transaction you will get 500gnt
|
||||
- Total Tokens 5000gnt for account
|
||||
|
||||
### 3.Create Validator
|
||||
|
||||
@ -32,20 +35,22 @@ recover accounts at a later point in time.
|
||||
|
||||
`Note:` Only execute below transaction after complete sync of your full node
|
||||
|
||||
Please replace `key_name` with your key name and `moniker` also
|
||||
|
||||
```
|
||||
ethermintd tx staking create-validator \
|
||||
--amount=1000000uwire \
|
||||
--amount=4500000000000000000000agnt \
|
||||
--pubkey=$(ethermintd tendermint show-validator) \
|
||||
--moniker="my-moniker" \
|
||||
--website="https://myweb.site" \
|
||||
--details="description of your validator" \
|
||||
--chain-id="flixnet-2" \
|
||||
--chain-id="ethermint_81337-1" \
|
||||
--commission-rate="0.10" \
|
||||
--commission-max-rate="0.20" \
|
||||
--commission-max-change-rate="0.01" \
|
||||
--min-self-delegation="1" \
|
||||
--gas="auto" \
|
||||
--gas-adjustment="1.2" \
|
||||
--gas-prices="0.025uwire" \
|
||||
--gas-prices="0.025agnt" \
|
||||
--from=<key_name>
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user