Installation

Quick-setup guide for Ollo

Chain ID: ollo-testnet-1 | Latest Version: v0.0.1

NOTE: These instructions assume a Debian-based OS is used (Ubuntu, Debian, etc.). They have been tested against Ubuntu 20.04 in most cases.

Install dependencies and pre-requesites

Update system repos and install tools

sudo apt update
sudo apt install make curl build-essential gcc git jq -y
sudo snap install lz4 -y

Install Go

sudo rm -rf /usr/local/go
sudo curl -Ls https://golang.org/dl/go1.19.4.linux-amd64.tar.gz | sudo tar -C /usr/local -xz
tee -a $HOME/.profile > /dev/null << EOF
#Add Go to PATH
export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin
#Add Go variables
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
EOF
source $HOME/.profile

Build Chain Binaries

# Clone project's repos
cd $HOME
rm -rf ollo
git clone https://github.com/OLLO-Station/ollo
cd ollo

# Build daemon binaries
git checkout v0.0.1
make install

Install and Configure Cosmovisor

# Install Cosmovisor
go install cosmossdk.io/tools/cosmovisor/cmd/cosmovisor@1.4.0

# Create service
sudo tee /etc/systemd/system/cosmovisor.service > /dev/null << EOF
[Unit]
Description=Cosmovisor service
After=network-online.target
[Service]
User=$USER
ExecStart=$(which cosmovisor) run start
Restart=always
RestartSec=10
LimitNOFILE=65535
Environment="DAEMON_NAME=ollod"
Environment="DAEMON_HOME=$HOME/.ollo"
Environment="DAEMON_ALLOW_DOWNLOAD_BINARIES=false"
Environment="DAEMON_RESTART_AFTER_UPGRADE=true"
Environment="UNSAFE_SKIP_BACKUP=true"
[Install]
WantedBy=multi-user.target
EOF

sudo systemctl daemon-reload
sudo systemctl enable cosmovisor

# Create cosmovisor directory structure
mkdir -p $HOME/.ollo/cosmovisor/genesis/bin
cp $(which ollod) $HOME/.ollo/cosmovisor/genesis/bin/

# Create application symlinks
ln -s $HOME/.ollo/cosmovisor/genesis $HOME/.ollo/cosmovisor/current
sudo ln -s $HOME/.ollo/cosmovisor/current/bin/ollod /usr/local/bin/ollod

Initialize the Node

NOTE: Replace CryptoChemistrySetup in this code snippet to change your node's moniker

MONIKER="CryptoChemistrySetup" && ollod init $MONIKER --chain-id ollo-testnet-1
ollod config chain-id ollo-testnet-1

# Download Genesis Files
curl -Ls https://raw.githubusercontent.com/OLLO-Station/networks/master/ollo-testnet-1/genesis.json > $HOME/.ollo/config/genesis.json

Last updated