Installation Validator

Chain ID: laozi-mainnet | Latest Binary Version: v2.5.2

Update and install packages for compiling

sudo apt update
sudo apt install curl git jq lz4 build-essential -y

User Management

Running in user (Assume) : admin We never used this username in our production !

Login as User admin

su - admin

or

sudo su - admin

and make sure we are in directory

pwd

/home/admin

Running in user : admin

FHS of Band

Create FHS for application

echo "Install FHS"
mkdir -p ${HOME}/tmp
mkdir -p ${HOME}/lib
mkdir -p ${HOME}/bin
mkdir -p ${HOME}/conf
mkdir -p ${HOME}/systemd

Install Golang

# Install Go 1.19.1
wget https://go.dev/dl/go1.19.1.linux-amd64.tar.gz
tar xf go1.19.1.linux-amd64.tar.gz
sudo mv go /usr/local/go

# Set Go path to $PATH variable
echo "export PATH=$PATH:/usr/local/go/bin:~/go/bin" >> $HOME/.bashrc
source ~/.bashrc

Install Band

cd ~
# Clone BandChain Laozi version v2.5.2
git clone https://github.com/bandprotocol/chain
cd chain
git fetch && git checkout v2.5.2

# Install binaries to $GOPATH/bin
export GOPATH="${HOME}/lib"
make install

cp ${HOME}/lib/bin/* ~/bin/

Environment

direct to ${HOME}/.bashrc or ${HOME}/.profile

echo 'export PATH="${PATH}:${HOME}/bin"' >> ${HOME}/.bashrc
source ~/.bashrc

Set Variable

# Chain ID of Laozi Mainnet
export CHAIN_ID=laozi-mainnet
# Wallet name to be used as validator's account, please change this into your name (no whitespace).
export WALLET_NAME=<YOUR_WALLET_NAME>
# Name of your validator node, please change this into your name.
export MONIKER=<YOUR_MONIKER>
# URL of genesis file for Laozi Mainnet
export GENESIS_FILE_URL=https://raw.githubusercontent.com/bandprotocol/launch/master/laozi-mainnet/genesis.json
# Data sources/oracle scripts files
export BIN_FILES_URL=https://raw.githubusercontent.com/bandprotocol/launch/master/laozi-mainnet/files.tar.gz

Intialize Node

bandd init --chain-id $CHAIN_ID "$MONIKER"

Replace genesis file with our genesis file

wget $GENESIS_FILE_URL -O $HOME/.band/config/genesis.json

Download data sources / oracle scripts files, and store in $HOME/.band/files

wget -qO- $BIN_FILES_URL | tar xvz -C $HOME/.band/

Create new account

bandd keys add $WALLET_NAME

Validate Genesis

bandd validate-genesis

Edit config, You can refer to Edit Configuration

Last updated