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://github.com/sge-network/networks/blob/master/mainnet/sgenet-1/genesis.json > $HOME/.sge/config/genesis.json
  • Add persistent_peers or seeds in ${HOME}/.sge/config/config.toml from sgenet-1/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 sgenet-1 \
  -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

Seed Nodes

  "seeds": [
      {
        "id": "babc3f3f7804933265ec9c40ad94f4da8e9e0017",
        "address": "seed.rhinostake.com:17756",
        "provider": "rhinostake.com"
      },
      {
        "id": "a973f744ec9b00cd387f62fc8d69ae1d753c060e",
        "address": "seed.sge.cros-nest.com:26656",
        "provider": "cros-nest.com"
      },
      {
        "id": "20e1000e88125698264454a884812746c2eb4807",
        "address": "seeds.lavenderfive.com:17756",
        "provider": "lavenderfive.com"
      },
      {
        "id": "df949a46ae6529ae1e09b034b49716468d5cc7e9",
        "address": "seeds.stakerhouse.com:11156",
        "provider": "stakerhouse.com"
      },
      {
        "id": "af9d9bd15ca597eb77dab73c56b0ae51bafcbb28",
        "address": "sge.ramuchi.tech:16656",
        "provider": "ramuchi.tech"
      },
      {
        "id": "6a727128f427d166d90a1185c7965b178235aaee",
        "address": "rpc.sge.nodestake.top:666",
        "provider": "nodestake.top"
      }
    ],

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