Installation Node

  • Network Type: Mainnet
  • Chain-id: bitcanna-1
  • Current Node version: v2.0.3
  • Hardware requirements

    The following requirements are recommended for running gitopia:

    • 4 or more physical CPU cores
    • At least 200GB of SSD disk storage
    • At least 8GB of memory (RAM)
    • At least 100mbps network bandwidth

    Install dependencies Required

    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

    Install go

    We are gonna use GO Version 1.19.9 If you already have GO installed you can skip this

    cd $HOME
    wget "$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" >> ~/.bash_profile
    source ~/.bash_profile
    go version

    Install binary

    cd $HOME
    rm -rf bcna
    git clone
    cd bcna
    git checkout v2.0.3
    make build

    Verify that you’ve installed bcnad successfully

    bcnad version

    Prepare Cosmovisor

    mkdir -p $HOME/.bcna/cosmovisor/genesis/bin
    mv build/bcnad $HOME/.bcna/cosmovisor/genesis/bin/
    rm -rf build
    sudo ln -s $HOME/.bcna/cosmovisor/genesis $HOME/.bcna/cosmovisor/current
    sudo ln -s $HOME/.bcna/cosmovisor/current/bin/bcnad /usr/local/bin/bcnad

    Install Cosmovisor

    go install

    Config app

    bcnad config chain-id bitcanna-1
    bcnad config keyring-backend file

    Initialize Node

    Please change <YOUR_MONIKER> To your own Moniker.

    bcnad init <YOUR_MONIKER> --chain-id bitcanna-1

    Download Genesis file and addrbook

    • Genesis
    curl -Ls > $HOME/.bcna/config/genesis.json
    • Addrbook
    curl -Ls > $HOME/.bcna/config/addrbook.json

    Configure Seeds and Peers

    PEERS="$(curl -sS | jq -r '.result.peers[] | "\(\(.remote_ip):\(.node_info.listen_addr)"' | awk -F ':' '{print $1":"$(NF)}' | sed -z 's|\n|,|g;s|.$||')"
    sed -i -e "s|^persistent_peers *=.*|persistent_peers = \"$PEERS\"|" $HOME/.bcna/config/config.toml

    Configure Gas Prices

    sed -i -e "s|^minimum-gas-prices *=.*|minimum-gas-prices = \"0.1ubcna\"|" $HOME/.bcna/config/app.toml

    config pruning

    sed -i -e "s/^pruning *=.*/pruning = \"$PRUNING\"/" $HOME/.bcna/config/app.toml
    sed -i -e "s/^pruning-keep-recent *=.*/pruning-keep-recent = \
    \"$PRUNING_KEEP_RECENT\"/" $HOME/.bcna/config/app.toml
    sed -i -e "s/^pruning-interval *=.*/pruning-interval = \
    \"$PRUNING_INTERVAL\"/" $HOME/.bcna/config/app.toml

    create service file and start node

    Create service file Create a bcnad.service file in the /etc/systemd/system folder with the following code. You can change USER with your Linux user name. You need sudo previlege to do this step.

    sudo tee /etc/systemd/system/bcnad.service > /dev/null << EOF
    Description=bitcanna node service
    ExecStart=$(which cosmovisor) run start
    sudo systemctl daemon-reload
    sudo systemctl enable bcnad

    Download Latest Snapshot

    curl -L | lz4 -dc - | tar -xf - -C $HOME/.bcna
    [[ -f $HOME/.bcna/data/upgrade-info.json ]] && cp $HOME/.bcna/data/upgrade-info.json $HOME/.bcna/cosmovisor/genesis/upgrade-info.json
    • Enable Service and Start Node
    sudo systemctl restart bcnad
    sudo journalctl -fu bcnad -o cat