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

Configure Moniker

# Replace <your-moniker-name> with your own validator name

MONIKER="<your-moniker-name>"

Install Go

# install go version 1.20.7

sudo rm -rf /usr/local/go
curl -Ls <https://go.dev/dl/go1.20.7.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

# Cloning project repository & Compile binaries

cd $HOME
rm -rf artela
git clone <https://github.com/artela-network/artela> artela
cd artela
git checkout v0.4.7-rc6
make build
# Prepare binaries for cosmovisor

mkdir -p $HOME/.artelad/cosmovisor/genesis/binmv build/artelad $HOME/.artelad/cosmovisor/genesis/bin/rm -rf build
# Create symlinks

sudo ln -s $HOME/.artelad/cosmovisor/genesis $HOME/.artelad/cosmovisor/current -fsudo ln -s $HOME/.artelad/cosmovisor/current/bin/artelad /usr/local/bin/artelad -f

Cosmovisor Setup

# Install cosmovisor

go install cosmossdk.io/tools/cosmovisor/cmd/[email protected]

Create Service

# Create a systemd service

sudo tee /etc/systemd/system/artela.service > /dev/null << EOF
[Unit]
Description=artela 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/.artelad"
Environment="DAEMON_NAME=artelad"
Environment="UNSAFE_SKIP_BACKUP=true"
 
[Install]
WantedBy=multi-user.target
EOF

Enable Service

# Enable artela systemd service

sudo systemctl daemon-reloadsudo systemctl enable artela

Initialize Node

# Setting node configuration

artelad config chain-id artela_11822-1
artelad config keyring-backend test
artelad config node tcp://localhost:23457
# Initialize node

artelad init $MONIKER --chain-id artela_11822-1

Download Genesis & Addrbook