🗻Installation

Nolus Mainnet guide

Hardware Requirements

Node Type
CPU
RAM
Storage

Mainnet

4+

16+

240+ GB SSD

Server preparation

sudo apt update && sudo apt upgrade -y
sudo apt install curl tar wget clang pkg-config libssl-dev jq build-essential bsdmainutils git make ncdu gcc git jq chrony liblz4-tool -y

GO 1.21.6

ver="1.21.6"
wget "https://golang.org/dl/go$ver.linux-amd64.tar.gz"
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf "go$ver.linux-amd64.tar.gz"
rm "go$ver.linux-amd64.tar.gz"
echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> $HOME/.bash_profile
source $HOME/.bash_profile
go version

Build

cd $HOME
git clone https://github.com/Nolus-Protocol/nolus-core.git
cd nolus-core
git checkout v0.8.0
make install
nolusd version --long | grep -e commit -e version

Result

  • version: 0.7.3

  • commit: 9d870b4a1181aac3a2ea3fbac1257911c18466e2


Initiation

Change <moniker> to your value, moniker is the name of your validator.

nolusd init <moniker> --chain-id pirin-1
nolusd config chain-id pirin-1

Create / recover wallet

Change <walletname> to the name of your wallet

nolusd keys add <walletname>
or
nolusd keys add <walletname> --recover

Download genesis and addrbook

https://raw.githubusercontent.com/Shoni-O/files/main/mainnet-files/nolus/genesis.json
https://raw.githubusercontent.com/Shoni-O/files/main/mainnet-files/nolus/addrbook.json
sha256sum $HOME/.nolus/config/genesis.json

Result

  • 795cd3a16bae2df6c973c4470b3d5f8811e590959aa5b70bd4e377b2b1d046b4


Setup the minimum gas price and Peers

sed -i -e "s|^minimum-gas-prices *=.*|minimum-gas-prices = \"0.0025unls\"|" $HOME/.nolus/config/app.toml

PEERS="[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:60756,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:2640,[email protected]:26656"

Pruning (optional)

sed -i \
  -e 's|^pruning *=.*|pruning = "nothing"|' \
  $HOME/.nolus/config/app.toml

Create a service file

tee /etc/systemd/system/nolusd.service > /dev/null <<EOF
[Unit]
Description=nolusd
After=network-online.target

[Service]
User=$USER
ExecStart=$(which nolusd) start
Restart=on-failure
RestartSec=3
LimitNOFILE=65535

[Install]
WantedBy=multi-user.target
EOF

Start

sudo systemctl daemon-reload
sudo systemctl enable nolusd
sudo systemctl restart nolusd && sudo journalctl -u nolusd -f -o cat

Create validator

Change walletName, YOUR_MONIKER_NAME, YOUR_KEYBASE_ID, YOUR_DETAILS and YOUR_WEBSITE_URL to your values

nolusd tx staking create-validator \
  --amount 1000000unls \
  --from <walletName> \
  --commission-max-change-rate "0.01" \
  --commission-max-rate "0.20" \
  --commission-rate "0.05" \
  --min-self-delegation "1" \
  --pubkey  $(nolusd tendermint show-validator) \
  --moniker YOUR_MONIKER_NAME \
  --chain-id pirin-1 \
  --identity="YOUR_KEYBASE_ID" \
  --details="YOUR_DETAILS" \
  --website="YOUR_WEBSITE_URL" -y

Delete node

sudo systemctl stop nolusd && \
sudo systemctl disable nolusd && \
rm /etc/systemd/system/nolusd.service && \
sudo systemctl daemon-reload && \
cd $HOME && \
rm -rf nolus-core && \
rm -rf .nolus && \
rm -rf $(which nolusd)

Last updated