Node Installation
Hardware requirements The following requirements are recommended for running WARDEN:
4 or more physical CPU cores
At least 1TB of SSD disk storage
At least 64GB of memory (RAM)
At least 500mbps network bandwidth
Manual Installation
# Update & install dependencies
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 htop tmux chrony liblz4-tool -y
# Install Go
cd $HOME
VER="1.22.2"
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
go version
# Set Vars
MONIKER=<YOUR_MONIKER_NAME_GOES_HERE>
echo "export MONIKER=$MONIKER" >> $HOME/.bash_profile
echo "export WARDEN_CHAIN_ID="chiado_10010-1"" >> $HOME/.bash_profile
echo "export WARDEN_PORT="31"" >> $HOME/.bash_profile
source $HOME/.bash_profile
# Download Binary
cd $HOME
wget https://github.com/warden-protocol/wardenprotocol/releases/download/v0.5.3/wardend_Linux_x86_64.zip
unzip wardend_Linux_x86_64.zip
chmod +x wardend
mv $HOME/wardend $HOME/go/bin
# Config and Init App
wardend init $MONIKER --chain-id $WARDEN_CHAIN_ID
# Add Genesis File and Addrbook
wget -O $HOME/.warden/config/genesis.json https://testnet-files.syanodes.my.id/warden-genesis.json
wget -O $HOME/.warden/config/addrbook.json https://testnet-files.syanodes.my.id/warden-addrbook.json
#Configure Seeds and Peers
SEEDS=""
PEERS="[email protected]:26656,[email protected]:18656,[email protected]:18656,[email protected]:26656,[email protected]:18656"
sed -i -e "s/^seeds *=.*/seeds = \"$SEEDS\"/; s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.warden/config/config.toml
sed -i -e "s/^minimum-gas-prices *=.*/minimum-gas-prices = \"250000000000000award\"/" $HOME/.warden/config/app.toml
sed -i -e 's|^indexer *=.*|indexer = "null"|' $HOME/.warden/config/config.toml
sed -i 's|^prometheus *=.*|prometheus = true|' $HOME/.warden/config/config.toml
# Config Pruning
pruning="custom"
pruning_keep_recent="100"
pruning_keep_every="0"
pruning_interval="10"
sed -i -e "s/^pruning *=.*/pruning = \"$pruning\"/" $HOME/.warden/config/app.toml
sed -i -e "s/^pruning-keep-recent *=.*/pruning-keep-recent = \"$pruning_keep_recent\"/" $HOME/.warden/config/app.toml
sed -i -e "s/^pruning-keep-every *=.*/pruning-keep-every = \"$pruning_keep_every\"/" $HOME/.warden/config/app.toml
sed -i -e "s/^pruning-interval *=.*/pruning-interval = \"$pruning_interval\"/" $HOME/.warden/config/app.toml
# Set Custom Port
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
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
sed -i \
-e 's|^chain-id *=.*|chain-id = "chiado_10010-1"|' \
-e 's|^keyring-backend *=.*|keyring-backend = "test"|' \
-e 's|^node *=.*|node = "tcp://localhost:31657"|' \
$HOME/.warden/config/client.toml
# Set Service File
sudo tee /etc/systemd/system/wardend.service > /dev/null <<EOF
[Unit]
Description=warden-testnet
After=network-online.target
[Service]
User=$USER
ExecStart=$(which wardend) start --home $HOME/.warden
Restart=on-failure
RestartSec=3
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
# Enable and Start Service
sudo systemctl daemon-reload
sudo systemctl enable wardend
sudo systemctl start wardend
sudo journalctl -fu wardend -o cat
Auto Installation
wget https://snapshot.syanodes.my.id/auto/testnet/warden_auto && chmod +x warden_auto && ./warden_auto
Last updated