OshVanK Node ServiceOshVanK Node Service
Lumera
Testnet

Installation

Full guide to run a validator node on Lumera testnet.


💢 Install Dependencies

sudo apt update && sudo apt upgrade -y
sudo apt install curl git wget htop tmux build-essential jq make lz4 gcc unzip -y

💢 Install Go

cd $HOME
VER="1.22.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

echo "export WALLET=\"wallet\"" >> $HOME/.bash_profile
echo "export MONIKER=\"YOUR_MONIKER_NAME\"" >> $HOME/.bash_profile
echo "export LUMERA_CHAIN_ID=\"lumera-testnet-2\"" >> $HOME/.bash_profile
echo "export LUMERA_PORT=\"16\"" >> $HOME/.bash_profile
source $HOME/.bash_profile

💢 Download Binary

cd $HOME

wget https://github.com/LumeraProtocol/lumera/releases/download/v1.20.0/lumera_v1.20.0_linux_amd64.tar.gz
tar -xvf lumera_v1.20.0_linux_amd64.tar.gz
rm lumera_1.20.0_linux_amd64.tar.gz
rm install.sh
mv libwasmvm.x86_64.so /usr/lib/
chmod +x lumerad
mv lumerad $HOME/go/bin/
lumerad version

💢 Initialize Node

lumerad init $MONIKER --chain-id $LUMERA_CHAIN_ID
sed -i \
  -e 's|^chain-id *=.*|chain-id = "lumera-testnet-2"|' \
  -e 's|^keyring-backend *=.*|keyring-backend = "os"|' \
  -e "s|^node *=.*|node = \"tcp://localhost:${LUMERA_PORT}657\"|" \
  $HOME/.lumera/config/client.toml

💢 Configure Node

💢 Configure peers

sed -i -e 's/^persistent_peers *=.*/persistent_peers = "05df2ce27cd2f2a5c7ecc8ec4d78c9243e39444b@3.236.181.141:26656,3b78b08bd9d9d0a2b17a944241a849ce04d8607e@44.204.100.172:26656"/' $HOME/.lumera/config/config.toml

💢 Update app.toml ports

sed -i.bak -e "s%:1317%:${LUMERA_PORT}317%g;
s%:8080%:${LUMERA_PORT}080%g;
s%:9090%:${LUMERA_PORT}090%g;
s%:9091%:${LUMERA_PORT}091%g;
s%:8545%:${LUMERA_PORT}545%g;
s%:8546%:${LUMERA_PORT}546%g;
s%:8547%:${LUMERA_PORT}547%g;
s%:6065%:${LUMERA_PORT}065%g" $HOME/.lumera/config/app.toml

💢 Update config.toml ports

sed -i.bak -e "s%:26658%:${LUMERA_PORT}658%g;
s%:26657%:${LUMERA_PORT}657%g;
s%:6060%:${LUMERA_PORT}060%g;
s%:26656%:${LUMERA_PORT}656%g;
s%^external_address = \"\"%external_address = \"$(wget -qO- eth0.me):${LUMERA_PORT}656\"%;
s%:26660%:${LUMERA_PORT}660%g" $HOME/.lumera/config/config.toml

💢 Configure Pruning

sed -i -e "s/^pruning *=.*/pruning = \"custom\"/" $HOME/.lumera/config/app.toml
sed -i -e "s/^pruning-keep-recent *=.*/pruning-keep-recent = \"100\"/" $HOME/.lumera/config/app.toml
sed -i -e "s/^pruning-interval *=.*/pruning-interval = \"20\"/" $HOME/.lumera/config/app.toml

💢 Set Minimum Gas Fee & Other Parameters

sed -i 's|minimum-gas-prices =.*|minimum-gas-prices = "0.025ulume"|g' $HOME/.lumera/config/app.toml
sed -i -e "s/prometheus = false/prometheus = true/" $HOME/.lumera/config/config.toml
sed -i -e "s/^indexer *=.*/indexer = \"null\"/" $HOME/.lumera/config/config.toml

💢 Create Services

sudo tee /etc/systemd/system/lumerad.service > /dev/null <<EOF
[Unit]
Description=lumera-testnet
After=network-online.target

[Service]
User=\$USER
ExecStart=\$(which lumerad) start --home \$HOME/.lumera
Restart=on-failure
RestartSec=3
LimitNOFILE=65535

[Install]
WantedBy=multi-user.target
EOF

💢 Start Services

sudo systemctl daemon-reload
sudo systemctl enable lumerad
sudo systemctl restart lumerad && sudo journalctl -u lumerad -fo cat

Check logs directly:

sudo journalctl -u lumerad -fo cat

On this page