💻Installation

Server preparation

apt update && apt upgrade -y
apt install curl iptables build-essential git wget jq make gcc nano tmux htop nvme-cli pkg-config libssl-dev libleveldb-dev tar clang bsdmainutils ncdu unzip libleveldb-dev -y

Install GO

ver="1.20.5"
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

Node installation

git clone https://github.com/lavanet/lava && cd lava
mkdir -p $HOME/lava/build
cd $HOME/lava/build

wget -O $HOME/lava/build/lavad "https://github.com/lavanet/lava/releases/download/v4.2.0/lavad-v4.2.0-linux-amd64"
chmod +x $HOME/lava/build/lavad
mv $HOME/lava/build/lavad $(which lavad)

lavad version --long | grep -e version -e commit
#version: 4.2.0
#commit: 18c395ba01dbd650eac3d276991782faa28270ae

We initialize the node to create the necessary configuration files

Download Genesis

At this stage, we can download the address book

Set up node configuration

(OPTIONAL) Set up pruning

(OPTIONAL) Set up indexer

(OPTIONAL) Enable/Disable Snapshots

Create a service file

circle-info

If peers do not cling for a long time or you see errors error: wrong Block.Header.AppHash, you need to use State sync or boot from a Snapshot

circle-info

To view useful commands, go to Useful commandsarrow-up-right

To create a validator, go to Creating / Editing a Validatorarrow-up-right

Last updated