BlockPro | Services
  • About
  • HUB
    • Namada HUB
      • What is Namada?
      • News & Updates
      • Guides
        • Running Low on $NAM for Gas? Try This!
      • Validator Services
      • Governance
      • Contribute / Feedback
    • Fuel HUB
      • What is Fuel?
      • News & Updates
      • Guides
        • How to stake
      • Validator Services
      • Governance
      • Contribute / Feedback
  • mainnet
    • Lava
      • ⚙️Services | Snapshot
      • 🗻Installation
      • 🖱️Upgrade
      • 🖥️Useful commands
    • Stargaze
      • ⚒️Installation
      • ⚙️Services | Sync
      • 🔄Upgrade
      • 🖥️Useful commands
    • Fuel
      • ⚒️Run Sequencer Validator
      • ⚙️Services | Sync
      • 🖥️Useful commands
      • Ethereum Mainnet Full Node
    • Namada Docs
      • ⚒️Installation
      • ⚙️Services Snapshot
    • Nolus
      • ⚙️Services | Snapshot
      • 🗻Installation
      • 🖱️Upgrade
      • 🖥️Useful commands
    • Quasar
      • ⚙️Services | Snapshot
      • 🗻Installation
      • 🖱️Upgrade
      • 🖥️Useful commands
    • Cross Finance
  • testnet
    • Cross Finance
      • Installation
    • Lava
      • Installation
      • Upgrade
      • Useful commands
    • Quasar
      • Installation
      • Upgrade
      • Useful commands
    • 0G
      • Installation
      • Upgrade
      • Useful commands
    • Story
      • ⚙️Services | Snapshot
      • 🗻Installation
      • 🖱️Upgrade
      • 🖥️Useful commands
    • Warden
      • ⚙️Services | Snapshot
      • 🗻Installation
      • 🖱️Upgrade
      • 🖥️Useful commands
Powered by GitBook
On this page
  • Hardware Requirements
  • Server preparation
  • GO 1.21.6
  • Build
  • Initiation
  • Create / recover wallet
  • Download genesis and addrbook
  • Setup the minimum gas price and Peers
  • Pruning (optional)
  • Create a service file
  • Start
  • Create validator
  • Delete node
  1. mainnet
  2. Lava

Installation

Lava Mainnet guide

Hardware Requirements

Node Type
CPU
RAM
Storage

Mainnet

4

8 GB

100 GB (SSD or NVME)

Server preparation

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 chrony liblz4-tool -y

GO 1.21.6

ver="1.21.6"
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"
echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> $HOME/.bash_profile
source $HOME/.bash_profile
go version

Build

cd $HOME
git clone https://github.com/lavanet/lava.git
cd lava
git checkout v4.1.0
make install-all
lavad version --long | grep -e commit -e version

Result

  • version: 4.1.0

  • commit: c57c9f807ef914e810276d5895fac7aa9b2a82ab


Initiation

Change <moniker> to your value, moniker is the name of your validator.

lavad init <moniker> --chain-id=lava-mainnet-1
lavad config chain-id lava-mainnet-1

Create / recover wallet

Change <walletname> to the name of your wallet

lavad keys add <walletname>
or
lavad keys add <walletname> --recover

Download genesis and addrbook

wget -O $HOME/.lava/config/genesis.json "https://raw.githubusercontent.com/Shoni-O/files/main/mainnet-files/lava/genesis.json"
wget -O $HOME/.lava/config/addrbook.json "https://raw.githubusercontent.com/Shoni-O/files/main/mainnet-files/lava/addrbook.json"
sha256sum $HOME/.lava/config/genesis.json

Result

  • 5ba7dc9ac4ee0ea1776c8f13dc45be84ffc2ef3ffbe8271e30b573134ecd61ea


Setup the minimum gas price and Peers

sed -i -e "s/^minimum-gas-prices *=.*/minimum-gas-prices = \"0.000000001ulava\"/" $HOME/.lava/config/app.toml
external_address=$(wget -qO- eth0.me) 
sed -i.bak -e "s/^external_address *=.*/external_address = \"$external_address:26656\"/" $HOME/.lava/config/config.toml
peers=""
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" $HOME/.lava/config/config.toml
sed -i \
  -e 's/timeout_commit = ".*"/timeout_commit = "30s"/g' \
  -e 's/timeout_propose = ".*"/timeout_propose = "1s"/g' \
  -e 's/timeout_precommit = ".*"/timeout_precommit = "1s"/g' \
  -e 's/timeout_precommit_delta = ".*"/timeout_precommit_delta = "500ms"/g' \
  -e 's/timeout_prevote = ".*"/timeout_prevote = "1s"/g' \
  -e 's/timeout_prevote_delta = ".*"/timeout_prevote_delta = "500ms"/g' \
  -e 's/timeout_propose_delta = ".*"/timeout_propose_delta = "500ms"/g' \
  -e 's/skip_timeout_commit = ".*"/skip_timeout_commit = false/g' \
  $HOME/.lava/config/config.toml

Pruning (optional)

pruning="custom"
pruning_keep_recent="10000"
pruning_keep_every="0"
pruning_interval="1000"
sed -i -e "s/^pruning *=.*/pruning = \"$pruning\"/" $HOME/.lava/config/app.toml
sed -i -e "s/^pruning-keep-recent *=.*/pruning-keep-recent = \"$pruning_keep_recent\"/" $HOME/.lava/config/app.toml
sed -i -e "s/^pruning-keep-every *=.*/pruning-keep-every = \"$pruning_keep_every\"/" $HOME/.lava/config/app.toml
sed -i -e "s/^pruning-interval *=.*/pruning-interval = \"$pruning_interval\"/" $HOME/.lava/config/app.toml

Create a service file

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

[Service]
User=$USER
ExecStart=$(which lavad) start
Restart=on-failure
RestartSec=3
LimitNOFILE=65535

[Install]
WantedBy=multi-user.target
EOF

Start

sudo systemctl daemon-reload
sudo systemctl enable lavad 
sudo systemctl restart lavad && sudo journalctl -fu lavad  -o cat

Create validator

Change walletName, YOUR_MONIKER_NAME, YOUR_KEYBASE_ID, YOUR_DETAILS and YOUR_WEBSITE_URL to your values

lavad tx staking create-validator \
  --amount 1000000ulava \
  --from <walletName> \
  --commission-max-change-rate "0.01" \
  --commission-max-rate "0.20" \
  --commission-rate "0.05" \
  --min-self-delegation "1" \
  --pubkey  $(lavad tendermint show-validator) \
  --moniker YOUR_MONIKER_NAME \
  --chain-id lava-mainnet-1 \
  --identity="YOUR_KEYBASE_ID" \
  --details="YOUR_DETAILS" \
  --website="YOUR_WEBSITE_URL" -y

Delete node

sudo systemctl stop lavad
sudo systemctl disable lavad
rm /etc/systemd/system/lavad.service
sudo systemctl daemon-reload
cd $HOME
rm -rf lava
rm -rf .lava
rm -rf $(which lavad)
PreviousServices | SnapshotNextUpgrade

Last updated 6 months ago

🗻