This documentation under development by nodex.one team! πŸ‘·β€β™‚οΈπŸ‘‹
Networks
Mainnet
βš”οΈ Install

Manual Installation

Let's explore the manual installation process as we set up a node with Cosmovisor!

Install Dependencies

Update system package and install build tools
sudo apt -q update
sudo apt -qy install curl git jq lz4 build-essential fail2ban ufw
sudo apt -qy upgrade

Secure Setup

πŸ“’

While this step is optional, it is strongly recommended for those running on the mainnet to take a closer look, as it plays a crucial role in ensuring basic security. If you don't want to, you can skip ahead to configure moniker.

Setup ssh for composable user replace YOUR_PUBLIC_SSH_KEY with your own!
sudo adduser composable --disabled-password -q
sudo usermod -aG sudo composable
sudo -u composable bash -c 'mkdir -p ~/.ssh && echo "YOUR_PUBLIC_SSH_KEY" >> ~/.ssh/authorized_keys && chmod 700 ~/.ssh && chmod 600 ~/.ssh/authorized_keys'

Configure Moniker

Replace <your-moniker-name> with your own validator name
MONIKER="<your-moniker-name>"

Install Go

install go version 1.20.10
sudo rm -rf /usr/local/go
curl -Ls https://go.dev/dl/go1.20.10.linux-amd64.tar.gz | sudo tar -xzf - -C /usr/local
eval $(echo 'export PATH=$PATH:/usr/local/go/bin' | sudo tee /etc/profile.d/golang.sh)
eval $(echo 'export PATH=$PATH:$HOME/go/bin' | tee -a $HOME/.profile)
 

Build Binaries

The centauri mainnet chain was halted after a proposal 48 passed. This triggered a panic which caused the chain to halt. So your nodes needs updates binaries to v6.4.3

Cloning project repository & Compile binaries
cd $HOME
rm -rf composable-centauri
git clone https://github.com/notional-labs/composable-centauri.git
cd composable-centauri
git checkout v6.4.3
make build

Latest commit : 4c36a88a43b5e788788c45392d4ebcadce228ee6

Prepare binaries for cosmovisor
mkdir -p $HOME/.banksy/cosmovisor/genesis/bin
mv bin/centaurid $HOME/.banksy/cosmovisor/genesis/bin/
rm -rf bin
Create symlinks
sudo ln -s $HOME/.banksy/cosmovisor/genesis $HOME/.banksy/cosmovisor/current -f
sudo ln -s $HOME/.banksy/cosmovisor/current/bin/centaurid /usr/local/bin/centaurid -f

Cosmovisor Setup

Install cosmovisor
go install cosmossdk.io/tools/cosmovisor/cmd/cosmovisor@v1.5.0

Create Service

Create a systemd service
sudo tee /etc/systemd/system/composable.service > /dev/null << EOF
[Unit]
Description=composable node service
After=network-online.target
 
[Service]
User=$USER
ExecStart=$(which cosmovisor) run start
Restart=on-failure
RestartSec=10
LimitNOFILE=65535
Environment="DAEMON_HOME=$HOME/.banksy"
Environment="DAEMON_NAME=centaurid"
Environment="UNSAFE_SKIP_BACKUP=true"
Environment="PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:$HOME/.banksy/cosmovisor/current/bin"
 
[Install]
WantedBy=multi-user.target
EOF

Enable Service

Enable composable systemd service
sudo systemctl daemon-reload
sudo systemctl enable composable

Initialize Node

Setting node configuration
centaurid config chain-id centauri-1
centaurid config keyring-backend file
centaurid config node tcp://localhost:10157
Initialize node
centaurid init $MONIKER --chain-id centauri-1

Download Genesis & Addrbook

Download genesis & addrbook file
curl -Ls https://snap.nodex.one/composable/genesis.json > $HOME/.banksy/config/genesis.json
curl -Ls https://snap.nodex.one/composable/addrbook.json > $HOME/.banksy/config/addrbook.json

sha256sum genesis.json : ae5ff9e5807c78ddc745a683f197d374959d7c15bc7fd1307208083fa9820335

Configure Seeds

Setting up a seed peers
sed -i -e "s|^seeds *=.*|seeds = \"5f5cfac5c38506fbb4275c19e87c4107ec48808d@seeds.nodex.one:10110\"|" $HOME/.banksy/config/config.toml

Configure Gas Prices

Setting up a gas prices
sed -i -e "s|^minimum-gas-prices *=.*|minimum-gas-prices = \"0ppica\"|" $HOME/.banksy/config/app.toml

Pruning Setting

Configure pruning setting
sed -i \
  -e 's|^pruning *=.*|pruning = "custom"|' \
  -e 's|^pruning-keep-recent *=.*|pruning-keep-recent = "100"|' \
  -e 's|^pruning-keep-every *=.*|pruning-keep-every = "0"|' \
  -e 's|^pruning-interval *=.*|pruning-interval = "19"|' \
  $HOME/.banksy/config/app.toml

Custom Port

Please note that updating the port is optional!

Configure a custom port
sed -i -e "s%^proxy_app = \"tcp://127.0.0.1:26658\"%proxy_app = \"tcp://127.0.0.1:10158\"%; s%^laddr = \"tcp://127.0.0.1:26657\"%laddr = \"tcp://127.0.0.1:10157\"%; s%^pprof_laddr = \"localhost:6060\"%pprof_laddr = \"localhost:10160\"%; s%^laddr = \"tcp://0.0.0.0:26656\"%laddr = \"tcp://0.0.0.0:10156\"%; s%^prometheus_listen_addr = \":26660\"%prometheus_listen_addr = \":10166\"%" $HOME/.banksy/config/config.toml
sed -i -e "s%^address = \"tcp://localhost:1317\"%address = \"tcp://0.0.0.0:10117\"%; s%^address = \":8080\"%address = \":10180\"%; s%^address = \"localhost:9090\"%address = \"0.0.0.0:10190\"%; s%^address = \"localhost:9091\"%address = \"0.0.0.0:10191\"%; s%:8545%:10145%; s%:8546%:10146%; s%:6065%:10165%" $HOME/.banksy/config/app.toml

Download Snapshots

Download latest chain snapshot
curl -L https://snap.nodex.one/composable/composable-latest.tar.lz4 | tar -Ilz4 -xf - -C $HOME/.banksy
[[ -f $HOME/.banksy/data/upgrade-info.json ]] && cp $HOME/.banksy/data/upgrade-info.json $HOME/.banksy/cosmovisor/genesis/upgrade-info.json

Start Service

Letss f*cking goooo!
sudo systemctl start composable