This documentation under development by nodex.one team! πŸ‘·β€β™‚οΈπŸ‘‹
Networks
Testnet
βš”οΈ 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

πŸ“’

This step is optional, and you can choose to skip ahead to configure moniker.

Setup ssh for entrypoint user replace YOUR_PUBLIC_SSH_KEY with your own!
sudo adduser entrypoint --disabled-password -q
sudo usermod -aG sudo entrypoint
sudo -u entrypoint 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.21.3
sudo rm -rf /usr/local/go
curl -Ls https://go.dev/dl/go1.21.3.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

Download Compile binaries
cd $HOME
wget -O entrypointd https://github.com/entrypoint-zone/testnets/releases/download/v1.3.0/entrypointd-1.3.0-linux-amd64
chmod +x entrypointd

Latest commit : 5f0d3570949695395f084fc3d4137c0ec70665a0

Prepare binaries for cosmovisor
mkdir -p $HOME/.entrypoint/cosmovisor/genesis/bin
mv entrypointd $HOME/.entrypoint/cosmovisor/genesis/bin/
Create symlinks
sudo ln -s $HOME/.entrypoint/cosmovisor/genesis $HOME/.entrypoint/cosmovisor/current -f
sudo ln -s $HOME/.entrypoint/cosmovisor/current/bin/entrypointd /usr/local/bin/entrypointd -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/entrypoint.service > /dev/null << EOF
[Unit]
Description=entrypoint 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/.entrypoint"
Environment="DAEMON_NAME=entrypointd"
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/.entrypoint/cosmovisor/current/bin"
 
[Install]
WantedBy=multi-user.target
EOF

Enable Service

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

Initialize Node

Setting node configuration
entrypointd config chain-id entrypoint-pubtest-2	
entrypointd config keyring-backend test
entrypointd config node tcp://localhost:20957
Initialize node
entrypointd init $MONIKER --chain-id entrypoint-pubtest-2	

Download Genesis & Addrbook

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

sha256sum genesis.json : 82939fb4903545939a6164df7942205aef7b0229ecb22ee1d98e8c3c6cf62c4e

Configure Seeds

Setting up a seed peers
sed -i -e "s|^seeds *=.*|seeds = \"d1d43cc7c7aef715957289fd96a114ecaa7ba756@testnet-seeds.nodex.one:20910\"|" $HOME/.entrypoint/config/config.toml

Configure Gas Prices

Setting up a gas prices
sed -i -e "s|^minimum-gas-prices *=.*|minimum-gas-prices = \"0.01ibc/8A138BC76D0FB2665F8937EC2BF01B9F6A714F6127221A0E155106A45E09BCC5\"|" $HOME/.entrypoint/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/.entrypoint/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:20958\"%; s%^laddr = \"tcp://127.0.0.1:26657\"%laddr = \"tcp://127.0.0.1:20957\"%; s%^pprof_laddr = \"localhost:6060\"%pprof_laddr = \"localhost:20960\"%; s%^laddr = \"tcp://0.0.0.0:26656\"%laddr = \"tcp://0.0.0.0:20956\"%; s%^prometheus_listen_addr = \":26660\"%prometheus_listen_addr = \":20966\"%" $HOME/.entrypoint/config/config.toml
sed -i -e "s%^address = \"tcp://0.0.0.0:1317\"%address = \"tcp://0.0.0.0:20917\"%; s%^address = \":8080\"%address = \":20980\"%; s%^address = \"0.0.0.0:9090\"%address = \"0.0.0.0:20990\"%; s%^address = \"0.0.0.0:9091\"%address = \"0.0.0.0:20991\"%; s%:8545%:20945%; s%:8546%:20946%; s%:6065%:20965%" $HOME/.entrypoint/config/app.toml

Download Snapshots

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

Start Service

Letss f*cking goooo!
sudo systemctl start entrypoint