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/[email protected]
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.3-testnet2fork
make install
Configure Node
Initialize Node
Please replace YOUR_MONIKER
with your own moniker.
banksyd init YOUR_MONIKER --chain-id banksy-testnet-2
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/testnet-2/genesis.json
banksyd config chain-id banksy-testnet-2
Configure Seeds
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"'"[email protected]:2630,5c2a752c9b1952dbed075c56c600c3a79b58c395@composable-testnet-seed.autostake.com:26976,[email protected]:22256,3f472746f46493309650e5a033076689996c8881@composable-testnet.rpc.kjnodes.com:15959,ade4d8bc8cbe014af6ebdf3cb7b1e9ad36f412c0@testnet-seeds.polkachu.com:22256,945e8384ea51c5c6f7b9a90df8d8da120516d897@rpc.composable-t.indonode.net:47656"'"|" ~/.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.
To upgrade the node to a validator, you will need to submit a create-validator
transaction:
banksyd tx staking create-validator \
--amount 1000000upica \
--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=$(banksyd tendermint show-validator) \
--moniker $MONIKER_NAME \
--chain-id banksy-testnet-3 \
--gas-prices 0.025upica \
--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:
banksyd 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
Was this helpful?