Full node build

Install Go

Feel free to skip this step if you already have Go

Install Go

We will use Go v1.20.3 as example here. The code below also cleanly removes any previous Go installation.

sudo rm -rvf /usr/local/go/
wget https://golang.org/dl/go1.20.3.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.20.3.linux-amd64.tar.gz
rm go1.20.3.linux-amd64.tar.gz

Configure Go

Unless you want to configure in a non-standard way, then set these in the ~/.profile file.

export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export GO111MODULE=on
export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin

Build Daemon From Source

Install the current version of node binary.

git clone https://github.com/noria-net/noria.git
cd noria
git fetch --all
git checkout v1.3.0
make install

Configure Node

Initialize Node

Please replace YOUR_MONIKER with your own moniker.

noriad init YOUR_MONIKER --chain-id oasis-3

Download Genesis

noriad tendermint unsafe-reset-all

wget https://raw.githubusercontent.com/noria-net/noria/main/genesis.json -O $HOME/.noria/config/genesis.json

noriad config chain-id oasis-3

Set Persistent Peers

We can add these persistent_peers to our config.toml:

sed -i "s/persistent_peers =.*/persistent_peers = \"6b00a46b8c79deab378a8c1d5c2a63123b799e46@34.69.0.43:26656,4d8147a80c46ba21a8a276d55e6993353e03a734@165.22.42.220:26656,e82fb793620a13e989be8b2521e94db988851c3c@165.227.113.152:26656"\"/g" "${HOME}"/.noria/config/config.toml"

Set minimum gas price

sed -i -e "s|^minimum-gas-prices *=.*|minimum-gas-prices = \"0.0025ucrd\"|" "${HOME}"/.noria/config/app.toml

Setup Cosmovisor

Follow the Setup Cosmovisor instructions to setup cosmovisor and start the node.

Upgrade to a validator

Do not attempt to upgrade your node to a validator until the node is fully in sync as per the previous step.

To upgrade the node to a validator, you will need to submit a create-validator transaction:

noriad tx staking create-validator \
  --amount 1000000ucrd \
  --commission-max-change-rate "0.1" \
  --commission-max-rate "0.20" \
  --commission-rate "0.1" \
  --min-self-delegation "1" \
  --details "validators write bios too" \
  --pubkey=$(noriad tendermint show-validator) \
  --moniker $MONIKER_NAME \
  --chain-id oasis-3 \
  --gas-prices 0.025ucrd \
  --from <KEYNAME>

The above transaction is just an example. There are many more flags that can be set to customize your validator, such as your validator website, or keybase.io id, etc. To see a full list:

noriad tx staking create-validator --help

Backup critical files

There are certain files that you need to backup to be able to restore your validator if, for some reason, it damaged or lost in some way. Please make a secure backup of the following files located in ~/.noria/config/:

  • priv_validator_key.json

  • node_key.json

It is recommended that you encrypt the backup of these files.

Last updated

Logo

Made with ❤️ by WhisperNode // © 2024.