Full node build

Install Go and Cosmovisor

Feel free to skip this step if you already have Go and Cosmovisor.

Install Go

We will use Go v1.20.3 as example here. The code below also cleanly removes any previous Go installation.

sudo rm -rvf /usr/local/go/
wget https://golang.org/dl/go1.20.3.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.20.3.linux-amd64.tar.gz
rm go1.20.3.linux-amd64.tar.gz

Configure Go

Unless you want to configure in a non-standard way, then set these in the ~/.profile file.

export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export GO111MODULE=on
export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin

Install Cosmovisor

We will use Cosmovisor v1.0.0 as example here.

go install github.com/cosmos/cosmos-sdk/cosmovisor/cmd/cosmovisor@v1.0.0

Install Node

Install the current version of node binary.

git clone https://github.com/notional-labs/composable-centauri
cd composable-centauri
git fetch --all
git checkout v2.3.5
make install

Configure Node

Initialize Node

Please replace YOUR_MONIKER with your own moniker.

banksyd init YOUR_MONIKER --chain-id banksy-testnet-3

Download Genesis

The genesis file link below is Polkachu's mirror download. The best practice is to find the official genesis download link.

banksyd tendermint unsafe-reset-all

wget -O ~/.banksy/config/genesis.json https://raw.githubusercontent.com/notional-labs/composable-networks/main/banksy-testnet-3/genesis.json

banksyd config chain-id banksy-testnet-3

Configure Seeds and Peers

Using a seed node to bootstrap is the best practice in our view. Alternatively, you can use addrbook or persistent_peers.

sed -i.bak -E "s|^(seeds[[:space:]]+=[[:space:]]+).*$|\1"'"364b8245e72f083b0aa3e0d59b832020b66e9e9d@65.109.80.150:21500,d2deff06cf95c0d016d8f65822e1c74ce2af9def@95.217.58.111:37656"'"|" ~/.banksy/config/config.toml

Setup cosmovisor

Follow the Setup Cosmovisor instructions to setup cosmovisor and start the node.

Upgrade to a validator

Do not attempt to upgrade your node to a validator until the node is fully in sync as per the previous step. Note: after the upgrade to v3.0.0 the binary will change from banksyd to centaurid.

To upgrade the node to a validator, you will need to submit a create-validator transaction:

centaurid tx staking create-validator \
  --amount 1000000ppica \
  --commission-max-change-rate "0.1" \
  --commission-max-rate "0.20" \
  --commission-rate "0.1" \
  --min-self-delegation "1" \
  --details "validators write bios too" \
  --pubkey=$(centaurid tendermint show-validator) \
  --moniker $MONIKER_NAME \
  --chain-id banksy-testnet-3 \
  --gas-prices 0.025ppica \
  --from <KEYNAME>

The above transaction is just an example. There are many more flags that can be set to customise your validator, such as your validator website, or keybase.io id, etc. To see a full list:

centaurid tx staking create-validator --help

Backup critical files

There are certain files that you need to backup to be able to restore your validator if, for some reason, it damaged or lost in some way. Please make a secure backup of the following files located in ~/.banksy/config/:

  • priv_validator_key.json

  • node_key.json

It is recommended that you encrypt the backup of these files.

Last updated

Logo

Made with ❤️ by WhisperNode // © 2024.