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 Bitcanna Node
git clone https://github.com/BitCannaGlobal/bcna.git
cd bcna
git checkout v3.1.0
make install
bcnad version
# OUTPUT
# 3.1.0
Create Background Service
sudo tee /etc/systemd/system/bcnad.service > /dev/null << EOF
[Unit]
Description=Bitcanna Node
After=network-online.target
[Service]
User=$USER
ExecStart=/home/$USER/go/bin/bcnad start
Restart=always
RestartSec=3
LimitNOFILE=10000
[Install]
WantedBy=multi-user.target
EOF
Enable Bitcanna Node In Background
sudo systemctl enable bcnad
Initialize Bitcanna Node
bcnad config chain-id bitcanna-1
bcnad init "your node name" --chain-id bitcanna-1
Set Gas Price
sed -i 's|^minimum-gas-prices *=.*|minimum-gas-prices = "0.0026ubcna"|g' $HOME/.bcna/config/app.toml
Get Genesis
wget https://snapshot.safeblock.space/bitcanna/genesis.json -P $HOME/.bcna/config
Start by StateSync or Snapshot
Start Bitcanna Node
sudo systemctl start bcnad && sudo journalctl -fu bcnad -o cat
Last updated