Installation
Install Pre Requisites
sudo apt update
sudo apt install git build-essential curl jq lz4 --yes
wget https://go.dev/dl/go1.20.2.linux-amd64.tar.gz
tar -C /usr/local -xzf go1.20.2.linux-amd64.tar.gz
rm go1.20.2.linux-amd64.tar.gz
export PATH=$PATH:/usr/local/go/bin
cat <<EOF >> ~/.profile
export GOPATH=$HOME/go
export GO111MODULE=on
export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin
EOF
source ~/.profile
go version
# OUTPUT
# go version go1.20.2 linux/amd64
Install Bitsong Node
git clone https://github.com/bitsongofficial/go-bitsong.git
cd go-bitsong
git checkout v0.15.0
make install
bitsongd version
# OUTPUT
# 0.15.0
Create Background Service
sudo tee /etc/systemd/system/bitsongd.service > /dev/null << EOF
[Unit]
Description=Bitsong Node
After=network-online.target
[Service]
User=$USER
ExecStart=/home/$USER/go/bin/bitsongd start
Restart=always
RestartSec=3
LimitNOFILE=10000
[Install]
WantedBy=multi-user.target
EOF
Enable Bitsong Node In Background
sudo systemctl enable bitsongd
Initialize Bitsong Node
bitsongd config chain-id bitsong-2b
bitsongd init "your node name" --chain-id bitsong-2b
Set Gas Price
sed -i 's|^minimum-gas-prices *=.*|minimum-gas-prices = "0.0026ubtsg"|g' $HOME/.bitsongd/config/app.toml
Get Genesis
wget https://snapshot.safeblock.space/bitsong/genesis.json -P $HOME/.bitsongd/config
Start by StateSync or Snapshot
Start Bitsong Node
sudo systemctl start bitsongd && sudo journalctl -fu bitsongd -o cat
Last updated