updating seeds & peers

This commit is contained in:
Marston Connell 2022-10-27 15:08:50 -04:00
parent 6a92b57e79
commit bbd0c98f88
2 changed files with 11 additions and 5 deletions

View File

@ -25,10 +25,10 @@ Then we want to replace our generated genesis file with the one used to start th
```sh
wget -O ~/.canine/config/genesis.json https://cdn.discordapp.com/attachments/1002389406650466405/1034968352591986859/updated_genesis2.json
```
As a validator, you'll need to set a minimum gas price like so:
```sh
SEEDS=$(wget https://raw.githubusercontent.com/JackalLabs/canine-mainnet-genesis/master/genesis/seeds.txt -q -O -)
PEERS=`curl -sL https://raw.githubusercontent.com/JackalLabs/canine-mainnet-genesis/master/genesis/peers.txt | sort -R | head -n $PEERCOUNT | awk '{print $1}' | paste -s -d, -`
GAS="0.002ujkl"
sed -i.bak -e "s/^minimum-gas-prices *=.*/minimum-gas-prices = \"$GAS\"/" $HOME/.canine/config/app.toml
```
sed -i.bak -e "s/^seeds *=.*/seeds = \"$SEEDS\"/; s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.canine/config/config.toml
```

View File

@ -10,6 +10,12 @@ This guide assumes you are using the same machine as the full node.
## Setting Up
As a validator, you'll need to set a minimum gas price like so:
```sh
GAS="0.002ujkl"
sed -i.bak -e "s/^minimum-gas-prices *=.*/minimum-gas-prices = \"$GAS\"/" $HOME/.canine/config/app.toml
```
```sh
canined tx staking create-validator \
--amount 1000000ujkl \