Installation
Chain ID
Version
Custom Port
gardia-4
Node Version:5.16.20
18
Official Documentation Recommended Hardware: 4 Cores, 8GB RAM, 200GB of storage (NVME)
# install dependencies, if needed
sudo apt update && sudo apt upgrade -y
sudo apt install curl git wget htop tmux build-essential jq make lz4 gcc unzip -yNode NameWalletPort
# install go, if needed
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 ZENROCK_CHAIN_ID="gardia-2"" >> $HOME/.bash_profile
echo "export ZENROCK_PORT="18"" >> $HOME/.bash_profile
source $HOME/.bash_profile
# download binary
cd $HOME
curl -o zenrockd https://releases.gardia.zenrocklabs.io/zenrockd-latest
chmod +x $HOME/zenrockd
mv $HOME/zenrockd $HOME/go/bin/
# config and init app
zenrockd config node tcp://localhost:${ZENROCK_PORT}657
zenrockd config keyring-backend os
zenrockd config chain-id gardia-2
zenrockd init "test" --chain-id gardia-2
# download genesis and addrbook
wget -O $HOME/.zenrockd/config/genesis.json https://testnet-files.bonynode.online/zenrock/genesis.json
wget -O $HOME/.zenrockd/config/addrbook.json https://testnet-files.bonynode.online/zenrock/addrbook.json
# set seeds and peers
SEEDS=
PEERS="9608ccc8ab5043eb69739efadd9331bb75778529@zenrock-testnet-peer.monkeylabs.me:56656"
sed -i -e "s/^seeds *=.*/seeds = \"$SEEDS\"/; s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.zenrockd/config/config.toml
# set custom ports in app.toml
sed -i.bak -e "s%:1317%:${ZENROCK_PORT}317%g;
s%:8080%:${ZENROCK_PORT}080%g;
s%:9090%:${ZENROCK_PORT}090%g;
s%:9091%:${ZENROCK_PORT}091%g;
s%:8545%:${ZENROCK_PORT}545%g;
s%:8546%:${ZENROCK_PORT}546%g;
s%:6065%:${ZENROCK_PORT}065%g" $HOME/.zenrockd/config/app.toml
# set custom ports in config.toml file
sed -i.bak -e "s%:26658%:${ZENROCK_PORT}658%g;
s%:26657%:${ZENROCK_PORT}657%g;
s%:6060%:${ZENROCK_PORT}060%g;
s%:26656%:${ZENROCK_PORT}656%g;
s%^external_address = \"\"%external_address = \"$(wget -qO- eth0.me):${ZENROCK_PORT}656\"%;
s%:26660%:${ZENROCK_PORT}660%g" $HOME/.zenrockd/config/config.toml
# config pruning
sed -i -e "s/^pruning *=.*/pruning = \"custom\"/" $HOME/.zenrockd/config/app.toml
sed -i -e "s/^pruning-keep-recent *=.*/pruning-keep-recent = \"100\"/" $HOME/.zenrockd/config/app.toml
sed -i -e "s/^pruning-interval *=.*/pruning-interval = \"50\"/" $HOME/.zenrockd/config/app.toml
# set minimum gas price, enable prometheus and disable indexing
sed -i 's|minimum-gas-prices =.*|minimum-gas-prices = "1000urock"|g' $HOME/.zenrockd/config/app.toml
sed -i -e "s/prometheus = false/prometheus = true/" $HOME/.zenrockd/config/config.toml
sed -i -e "s/^indexer *=.*/indexer = \"null\"/" $HOME/.zenrockd/config/config.toml
# create service file
sudo tee /etc/systemd/system/zenrockd.service > /dev/null <<EOF
[Unit]
Description=Zenrock node
After=network-online.target
[Service]
User=$USER
WorkingDirectory=$HOME/.zenrockd
ExecStart=$(which zenrockd) start --home $HOME/.zenrockd
Restart=on-failure
RestartSec=5
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
# reset and download snapshot
zenrockd tendermint unsafe-reset-all --home $HOME/.zenrockd
if curl -s --head curl https://testnet-files.bonynode.online/zenrock/snap_zenrock.tar.lz4 | head -n 1 | grep "200" > /dev/null; then
curl https://testnet-files.bonynode.online/zenrock/snap_zenrock.tar.lz4 | lz4 -dc - | tar -xf - -C $HOME/.zenrockd
else
echo no have snap
fi
# enable and start service
sudo systemctl daemon-reload
sudo systemctl enable zenrockd
sudo systemctl restart zenrockd && sudo journalctl -u zenrockd -fAutomatic Installation
pruning: | indexer:
Create wallet
Create validator
MonikerIdentityDetailsAmount, urockCommission rateCommission max rateCommission max change rateWebsite
Monitoring
If you want to have set up a monitoring and alert system use our cosmos nodes monitoring guide with tenderduty
Security
To protect you keys please don`t share your privkey, mnemonic and follow a basic security rules
Set up ssh keys for authentication
You can use this guide to configure ssh authentication and disable password authentication on your server
Firewall security
Set the default to allow outgoing connections, deny all incoming, allow ssh and node p2p port
Delete node
Last updated