Setup your node
Install pre requis
sudo apt-get update && sudo apt upgrade -y
sudo apt-get install make build-essential gcc git jq chrony -y
Install go
sudo rm -rf /usr/local/go
wget https://golang.org/dl/go1.19.1.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.19.1.linux-amd64.tar.gz
rm go1.19.1.linux-amd64.tar.gz
Setting up go
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export GO111MODULE=on
export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin
Install Node
Install the Nolus-node
binary by running the following commands
#from $HOME dir
git clone https://github.com/Nolus-Protocol/nolus-core
cd nolus-core
git fetch
git checkout v0.3.0
make install
To confirm that the node is well installed
nolusd version
#v0.3.0
Setting up the Node
Initialization node
Please choose your MONIKER name and replace it in the next command, it will represent your node
nolusd init MONIKER_NAME --chain-id pirin-1
This will generate severals files in ~/.nolus/config/
- node_key.json
- genesis.json
- priv_validator_key.json
Download and replace the genesis file
rm ~/.nolus/config/genesis.json
wget -O genesis.json https://raw.githubusercontent.com/nolus-protocol/nolus-networks/main/mainnet/pirin-1/genesis.json --inet4-only
mv genesis.json ~/.nolus/config
Set minimum gas prices
sed -i.bak -e "s/^minimum-gas-prices *=.*/minimum-gas-prices = \"0.0025unls\"/" ~/.nolus/config/app.toml
Node connexion
In order to connect the node you can either use seeds
, lives peers
or address book
.
- Seeds
- Peers
- Addrbook
Set Seeds
Set Peers
PEERS = 89757803f40da51678451735445ad40d5b15e059@169.155.168.149:26656,c6be81e1757c31012ef201d396981d69d370f37a@162.19.237.150:26656,65d9be311c814f775eda349427d11a39eb6b8623@5.10.19.39:26656,97e4468ac589eac505a800411c635b14511a61bb@134.65.195.225:26656,d3f29b638d089a73651a290c3f2e27b8da663f92@65.109.122.105:60756,d2247f7b919f0781c90ee61958d7044665a22d38@164.152.160.230:26656,488c9ee36fc5ee54e662895dfed5e5df9a5ff2d5@136.243.39.118:26656,c124ce0b508e8b9ed1c5b6957f362225659b5343@134.65.193.172:26656,4868bb0024f54952ae5e2f191e1363ac29aab49c@65.108.71.163:2640,6cceba286b498d4a1931f85e35ea0fa433373057@169.155.170.20:26656
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.nolus/config/config.toml
Set Addrbook
Setup service file
[Unit]
Description="Nolus node"
[Service]
User=USER
ExecStart=$(which nolusd) start
Restart=always
RestartSec=3
LimitNOFILE=4096
[Install]
WantedBy=multi-user.target
If you'd like to synchronise a node from a snapshot check the snapshot part
Start service file
systemctl daemon-reload
systemctl start nolus.service | journalctl -u nolus.service -f