Joining as a Validator after Genesis

Step 1: Start a full node

  • Install SGE application

  • Initialize node

sged init {{NODE_NAME}}
  • Replace the contents of your ${HOME}/.sge/config/genesis.json with that of genesis.json from the master branch of repository

https://raw.githubusercontent.com/sge-network/networks/master/sge-network-3/genesis.json > $HOME/.sge/config/genesis.json
  • Add persistent_peers or seeds in ${HOME}/.sge/config/config.toml from sge-network-3/peer_nodes.txt from the master branch of repository

  • Start node

sged start --minimum-gas-prices [desired-gas-price(ex. 0.001usge)]

Note: if you are only planning to run a full node, you can stop here

Step 2: Create a validator

  • Acquire $SGE tokens from the faucet

  • Wait for your full node to catch up to the latest block (compare to the explorer)

  • Run sged tendermint show-validator and copy your consensus public key

  • Send a create-validator transaction

sged tx staking create-validator \
  --amount 50000000usge \
  --commission-max-change-rate 0.01 \
  --commission-max-rate 0.2 \
  --commission-rate 0.1 \
  --from [account_key_name] \
  --fees 200000usge \
  --min-self-delegation 1 \
  --moniker [validator_moniker] \
  --pubkey $(sged tendermint show-validator) \
  --chain-id sge-network-3 \
  -y

Persistent Peers

The persistent_peers needs a comma-separated list of trusted validators on the network, you can acquire it from the peer-nodes.text for example:

4980b478f91de9be0564a547779e5c6cb07eb995@3.239.15.80:26656,0e7042be1b77707aaf0597bb804da90d3a606c08@3.88.40.53:26656

Install system.d service file

nano /etc/systemd/system/sged.service

Please following contents(the working dir may be changed as needed)

[Unit]
Description=Sge Network node
After=network.target

[Service]
Type=simple
User=ubuntu
WorkingDirectory=/home/ubuntu
ExecStart=/usr/local/sbin/sged start
Restart=on-failure
RestartSec=10
LimitNOFILE=40960

[Install]
WantedBy=multi-user.target

Reload unit files in systemd

sudo systemctl daemon-reload

Last updated