Installation
Recommended Hardware: 4 Cores, 16GB RAM, 200GB of storage (NVME)
Node Name
Wallet
Port
Add
# set environment variables
echo "export WALLET="wallet"" >> $HOME/.bash_profile
echo "export MONIKER="moniker"" >> $HOME/.bash_profile
echo "export CHAIN_ID="buenavista-1"" >> $HOME/.bash_profile
echo "export PROJECT="warden"" >> $HOME/.bash_profile
echo "export NETWORK="testnet"" >> $HOME/.bash_profile
echo "export DIRECTORY="$HOME/.warden"" >> $HOME/.bash_profile
source $HOME/.bash_profile
# install dependencies
sudo apt -q update
sudo apt -qy install curl git jq lz4 build-essential fail2ban ufw
sudo apt -qy upgrade
# install go
cd $HOME
bash <(curl -s "https://raw.githubusercontent.com/Andromeda-node/utils/main/auto_go_install.sh") -v 1.21.6
source ~/.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/warden/cmd/wardend
go build
sudo mv wardend /root/go/bin/
# config and init app
wardend config keyring-backend os
wardend config chain-id buenavista-1
wardend init "moniker" --chain-id buenavista-1
# 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=""
PEERS=""
sed -i -e "s/^seeds *=.*/seeds = \"$SEEDS\"/; s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $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.025uward"|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 and enable 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
sudo systemctl daemon-reload
sudo systemctl enable wardend
# start service
sudo systemctl restart wardend && sudo journalctl -u wardend -f --no-hostname -o cat
Create validator
Moniker
Identity
Details
Amount, uward
Commission rate
Commission max rate
Commission max change rate
Website
#private validator key
wardend comet show-validator
sudo tee $HOME/.warden/validator.json > /dev/null <<EOF
{
"pubkey": {"#output private validator key},
"amount": "1000000uward",
"moniker": "moniker",
"identity": "",
"website": "https://andromedanode.co/",
"details": "A heartfelt shoutout to Andromeda for their amazing support! Your contributions shine brightly, guiding us forward. We are deeply grateful. And to the world of blockchain, our love knows no bounds. ❤️ Thank you, Andromeda, for being such a vital part of our journey.",
"commission-rate": "0.1",
"commission-max-rate": "0.2",
"commission-max-change-rate": "0.01",
"min-self-delegation": "1"
}
EOF
wardend tx staking create-validator $HOME/.warden/validator.json \
--from=$WALLET \
--chain-id=buenavista-1 \
--gas auto --gas-adjustment 1.5 --fees 600uward
Security
Firewall security
Set the default to allow outgoing connections, deny all incoming, allow ssh and node p2p port
sudo apt install -y ufw
sudo ufw default allow outgoing
sudo ufw default deny incoming
sudo ufw allow ssh/tcp
sudo ufw allow 26656/tcp
sudo ufw enable
Delete node
cd $HOME
sudo systemctl stop wardend
sudo systemctl disable wardend
sudo rm /etc/systemd/system/wardend.service
sudo systemctl daemon-reload
sudo rm -rf $HOME/.warden
sudo rm -rf $(which wardend)