Installation
Setup validator name
MONIKER="YOUR_MONIKER_GOES_HERE"
Install dependencies
sudo apt update
sudo apt-get install git curl build-essential make jq gcc snapd chrony lz4 tmux unzip bc -y
INSTALL GO
rm -rf $HOME/go
sudo rm -rf /usr/local/go
cd $HOME
curl https://dl.google.com/go/go1.22.8.linux-amd64.tar.gz | sudo tar -C/usr/local -zxvf -
cat <<'EOF' >>$HOME/.profile
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export GO111MODULE=on
export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin
EOF
source $HOME/.profile
go version
Install Node
cd $HOME
rm -rf bin
mkdir bin && cd bin
wget https://github.com/warden-protocol/wardenprotocol/releases/download/v0.5.4/wardend_Linux_x86_64.zip
unzip wardend_Linux_x86_64.zip
chmod +x wardend
mv $HOME/bin/wardend $HOME/go/bin
Initialize Node
wardend init MyNode --chain-id chiado_10010-1
Download genesis and addrbook
curl -Ls https://snapshots.aknodes.net/snapshots/warden/genesis.json > $HOME/.warden/config/genesis.json
curl -Ls https://snapshots.aknodes.net/snapshots/warden/addrbook.json > $HOME/.warden/config/addrbook.json
Create Service
tee /etc/systemd/system/wardend.service > /dev/null <<EOF
[Unit]
Description=wardend
After=network-online.target
[Service]
User=$USER
ExecStart=$(which wardend) start
Restart=on-failure
RestartSec=3
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
Download Snapshot
wardend tendermint unsafe-reset-all --home $HOME/.warden --keep-addr-book
curl https://snapshots.aknodes.net/snapshots/warden/snapshot-warden.AKNodes.lz4 | lz4 -dc - | tar -xf - -C $HOME/.warden
Start the node
sudo systemctl restart wardend
journalctl -u wardend -f
Last updated