This documentation under development by nodex.one team! πŸ‘·β€β™‚οΈπŸ‘‹
Networks
Mainnet
βš”οΈ Install

Manual Installation

Let's explore the manual installation process as we set up a node with Cosmovisor!

Install Dependencies

Update system package and install build tools
sudo apt -q update
sudo apt -qy install curl git jq lz4 build-essential fail2ban ufw
sudo apt -qy upgrade

Secure Setup

πŸ“’

While this step is optional, it is strongly recommended for those running on the mainnet to take a closer look, as it plays a crucial role in ensuring basic security. If you don't want to, you can skip ahead to configure moniker.

Setup ssh for realio user replace YOUR_PUBLIC_SSH_KEY with your own!
sudo adduser realio --disabled-password -q
sudo usermod -aG sudo realio
sudo -u realio bash -c 'mkdir -p ~/.ssh && echo "YOUR_PUBLIC_SSH_KEY" >> ~/.ssh/authorized_keys && chmod 700 ~/.ssh && chmod 600 ~/.ssh/authorized_keys'

Configure Moniker

Replace <your-moniker-name> with your own validator name
MONIKER="<your-moniker-name>"

Install Go

install go version 1.19.12
sudo rm -rf /usr/local/go
curl -Ls https://go.dev/dl/go1.19.12.linux-amd64.tar.gz | sudo tar -xzf - -C /usr/local
eval $(echo 'export PATH=$PATH:/usr/local/go/bin' | sudo tee /etc/profile.d/golang.sh)
eval $(echo 'export PATH=$PATH:$HOME/go/bin' | tee -a $HOME/.profile)

Build Binaries

Cloning project repository & Compile binaries
cd $HOME
rm -rf realio-network
git clone https://github.com/realiotech/realio-network.git
cd realio-network
git checkout v0.9.3
make build

Latest commit : 505655e1c64ecf2b73fba4147d94d302d7cee96a

Prepare binaries for cosmovisor
mkdir -p $HOME/.realio-network/cosmovisor/genesis/bin
mv build/realio-networkd $HOME/.realio-network/cosmovisor/genesis/bin/
rm -rf build
Create symlinks
sudo ln -s $HOME/.realio-network/cosmovisor/genesis $HOME/.realio-network/cosmovisor/current -f
sudo ln -s $HOME/.realio-network/cosmovisor/current/bin/realio-networkd /usr/local/bin/realio-networkd -f

Cosmovisor Setup

Install cosmovisor
go install cosmossdk.io/tools/cosmovisor/cmd/cosmovisor@v1.5.0

Create Service

Create a systemd service
sudo tee /etc/systemd/system/realio.service > /dev/null << EOF
[Unit]
Description=realio node service
After=network-online.target
 
[Service]
User=$USER
ExecStart=$(which cosmovisor) run start
Restart=on-failure
RestartSec=10
LimitNOFILE=65535
Environment="DAEMON_HOME=$HOME/.realio-network"
Environment="DAEMON_NAME=realio-networkd"
Environment="UNSAFE_SKIP_BACKUP=true"
 
[Install]
WantedBy=multi-user.target
EOF

Enable Service

Enable realio systemd service
sudo systemctl daemon-reload
sudo systemctl enable realio

Initialize Node

Setting node configuration
realio-networkd config chain-id realionetwork_3301-1
realio-networkd config keyring-backend file
realio-networkd config node tcp://localhost:10357
Initialize node
realio-networkd init $MONIKER --chain-id realionetwork_3301-1

Download Genesis & Addrbook

Download genesis & addrbook file
curl -Ls https://snap.nodex.one/realio/genesis.json > $HOME/.realio-network/config/genesis.json
curl -Ls https://snap.nodex.one/realio/addrbook.json > $HOME/.realio-network/config/addrbook.json

sha256sum genesis.json : 42f775d0da3df94a4148e270bebc704acd76106ab2644f8e6a8c5b21330201a3

Configure Seeds

Setting up a seed peers
sed -i -e "s|^seeds *=.*|seeds = \"5f5cfac5c38506fbb4275c19e87c4107ec48808d@seeds.nodex.one:10310\"|" $HOME/.realio-network/config/config.toml

Configure Gas Prices

Setting up a gas prices
sed -i -e "s|^minimum-gas-prices *=.*|minimum-gas-prices = \"0ario\"|" $HOME/.realio-network/config/app.toml

Pruning Setting

Configure pruning setting
sed -i \
  -e 's|^pruning *=.*|pruning = "custom"|' \
  -e 's|^pruning-keep-recent *=.*|pruning-keep-recent = "100"|' \
  -e 's|^pruning-keep-every *=.*|pruning-keep-every = "0"|' \
  -e 's|^pruning-interval *=.*|pruning-interval = "19"|' \
  $HOME/.realio-network/config/app.toml

Custom Port

Please note that updating the port is optional!

Configure a custom port
sed -i -e "s%^proxy_app = \"tcp://127.0.0.1:26658\"%proxy_app = \"tcp://127.0.0.1:10358\"%; s%^laddr = \"tcp://127.0.0.1:26657\"%laddr = \"tcp://127.0.0.1:10357\"%; s%^pprof_laddr = \"localhost:6060\"%pprof_laddr = \"localhost:10360\"%; s%^laddr = \"tcp://0.0.0.0:26656\"%laddr = \"tcp://0.0.0.0:10356\"%; s%^prometheus_listen_addr = \":26660\"%prometheus_listen_addr = \":10366\"%" $HOME/.realio-network/config/config.toml
sed -i -e "s%^address = \"tcp://0.0.0.0:1317\"%address = \"tcp://0.0.0.0:10317\"%; s%^address = \":8080\"%address = \":10380\"%; s%^address = \"0.0.0.0:9090\"%address = \"0.0.0.0:10390\"%; s%^address = \"0.0.0.0:9091\"%address = \"0.0.0.0:10391\"%; s%:8545%:10345%; s%:8546%:10346%; s%:6065%:10365%" $HOME/.realio-network/config/app.toml

Download Snapshots

Download latest chain snapshot
curl -L https://snap.nodex.one/realio/realio-latest.tar.lz4 | tar -Ilz4 -xf - -C $HOME/.realio-network
[[ -f $HOME/.realio-network/data/upgrade-info.json ]] && cp $HOME/.realio-network/data/upgrade-info.json $HOME/.realio-network/cosmovisor/genesis/upgrade-info.json

Start Service

Letss f*cking goooo!
sudo systemctl start realio