✔️Warden protocol
Install go
cd $HOME
VER="1.21.3"
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"
[ ! -f ~/.bash_profile ] && touch /.bash_profile
echo "export PATH=$PATH:/usr/local/go/bin:/go/bin" >> ~/.bash_profile
source $HOME/.bash_profile [ ! -d ~/go/bin ] && mkdir -p ~/go/bin
set vars
echo "export WALLET="wallet"" >> $HOME/.bash_profile
echo "export MONIKER="test"" >> $HOME/.bash_profile
echo "export WARDEN_CHAIN_ID="buenavista-1"" >> $HOME/.bash_profile
echo "export WARDEN_PORT="18"" >> $HOME/.bash_profile
source $HOME/.bash_profile
download binary
cd $HOME rm -rf wardenprotocol git clone --depth 1 --branch v0.3.0 https://github.com/warden-protocol/wardenprotocol/ cd wardenprotocol make install
config and init app
wardend init $MONIKER sed -i -e "s|^node =.|node = "tcp://localhost:${WARDEN_PORT}657"|" $HOME/.warden/config/client.toml
download genesis and addrbook
wget -O $HOME/.warden/config/genesis.json https://testnet-files.itrocket.net/warden/genesis.json wget -O $HOME/.warden/config/addrbook.json https://testnet-files.itrocket.net/warden/addrbook.json
set seeds and peers
SEEDS="8288657cb2ba075f600911685670517d18f54f3b@warden-testnet-seed.itrocket.net:18656" PEERS="b14f35c07c1b2e58c4a1c1727c89a5933739eeea@warden-testnet-peer.itrocket.net:18656,dc0122e37c203dec43306430a1f1879650653479@37.27.97.16:26656,e8b15bf7b20791665d8be9e530aafa3aa80f79c6@168.119.10.134:29474,8a6c441671f2a9531f3a0d625c0935b322ed9b6c@188.166.29.104:26656,db6947c73751a64b81360e2487c85c54ec0c81a5@81.17.97.89:656,3e9a65924264d5eca44e1489b00fe462b2bf7231@65.108.89.25:26656,2f6e9f21c33cdba23934c9b08cb32c8fc9a23ef6@213.199.35.46:11256,057763fb03a60008d188471309299b0006ad7796@65.109.83.40:27356,e8b4153ae30f47d1ff0912b035b63be8f6cea0d9@192.99.9.143:26656,849252edf13621d4ad531c95c26159be6dbfbd51@37.27.115.100:26671,5b6ed96c10d90d79bcffd47107cd34fba3a87b47@65.109.53.114:46656" sed -i -e "s/^seeds =./seeds = "$SEEDS"/; s/^persistent_peers =./persistent_peers = "$PEERS"/" $HOME/.warden/config/config.toml
set custom ports in app.toml
sed -i.bak -e "s%:1317%:${WARDEN_PORT}317%g; s%:8080%:${WARDEN_PORT}080%g; s%:9090%:${WARDEN_PORT}090%g; s%:9091%:${WARDEN_PORT}091%g; s%:8545%:${WARDEN_PORT}545%g; s%:8546%:${WARDEN_PORT}546%g; s%:6065%:${WARDEN_PORT}065%g" $HOME/.warden/config/app.toml
set custom ports in config.toml file
sed -i.bak -e "s%:26658%:${WARDEN_PORT}658%g; s%:26657%:${WARDEN_PORT}657%g; s%:6060%:${WARDEN_PORT}060%g; s%:26656%:${WARDEN_PORT}656%g; s%^external_address = ""%external_address = "$(wget -qO- eth0.me):${WARDEN_PORT}656"%; s%:26660%:${WARDEN_PORT}660%g" $HOME/.warden/config/config.toml
config pruning
sed -i -e "s/^pruning =./pruning = "custom"/" $HOME/.warden/config/app.toml sed -i -e "s/^pruning-keep-recent =./pruning-keep-recent = "100"/" $HOME/.warden/config/app.toml sed -i -e "s/^pruning-interval =./pruning-interval = "50"/" $HOME/.warden/config/app.toml
set minimum gas price, enable prometheus and disable indexing
sed -i 's|minimum-gas-prices =.*|minimum-gas-prices = "0.0025uward"|g' $HOME/.warden/config/app.toml sed -i -e "s/prometheus = false/prometheus = true/" $HOME/.warden/config/config.toml sed -i -e "s/^indexer =./indexer = "null"/" $HOME/.warden/config/config.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
reset and download snapshot
wardend tendermint unsafe-reset-all --home $HOME/.warden if curl -s --head curl https://testnet-files.itrocket.net/warden/snap_warden.tar.lz4 | head -n 1 | grep "200" > /dev/null; then curl https://testnet-files.itrocket.net/warden/snap_warden.tar.lz4 | lz4 -dc - | tar -xf - -C $HOME/.warden else echo no have snap fi
enable and start service
sudo systemctl daemon-reload sudo systemctl enable wardend sudo systemctl restart wardend && sudo journalctl -u wardend -f
Last updated