Installation
Minimum hardware requirement
4 Cores, 16G Ram, 500G NVME, Ubuntu 22.04
Server preparation
sudo apt update && sudo apt upgrade -y
sudo apt install make curl git wget -y
sudo apt install htop tmux build-essential jq make lz4 gcc unzip -y
Install GO
if ! which go ; then
#Install GO
ver="1.22.4"
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
fi
Download and build binaries
cd $HOME
git clone https://github.com/warden-protocol/wardenprotocol.git
cd wardenprotocol
git checkout v0.6.2
make install
wardend version
Node configuration
Initialize the node
wardend config chain-id chiado_10010-1
wardend config keyring-backend os
wardend config node tcp://localhost:26657
wardend init NodeName --chain-id chiado_10010-1
Download genesis and addrbook
curl https://files.nodesync.top/warden/genesis.json -o ~/.warden/config/genesis.json
curl https://files.nodesync.top/warden/addrbook.json -o ~/.warden/config/addrbook.json
Add peers, Set minimum gas price, Set pruning
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"d5b7f132587c4bbfb1b024e37fd5989130756f69@warden-t-rpc.noders.services:27356\"/" ~/.warden/config/config.toml
sed -i -e "s|^minimum-gas-prices *=.*|minimum-gas-prices = \"0.001uward\"|" ~/.warden/config/app.toml
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"|' \
~/.warden/config/app.toml
Create service file
sudo tee /etc/systemd/system/wardend.service > /dev/null <<EOF
[Unit]
Description=Warden node
After=network-online.target
[Service]
User=$USER
WorkingDirectory=$HOME/.warden
ExecStart=$(which wardend) start --home $HOME/.warden
Restart=on-failure
RestartSec=5
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
Start node and check logs
sudo systemctl daemon-reload
sudo systemctl enable wardend
sudo systemctl start wardend
sudo journalctl -u wardend -f --no-hostname -o cat