install

OJO

Setup validator name

Replace YOUR_MONIKER_GOES_HERE with your validator name

MONIKER="YOUR_MONIKER_GOES_HERE"

Install dependencies

UPDATE SYSTEM AND INSTALL BUILD TOOLS

sudo apt -q update
sudo apt -qy install curl git jq lz4 build-essential
sudo apt -qy upgrade

INSTALL GO

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

Download and build binaries

Clone project repository

Build binaries

Prepare binaries for Cosmovisor

Install Cosmovisor and create a service

Download and install Cosmovisor

Create service

Initialize the node

Set node configuration

Initialize the node

Download genesis and addrbook

Add seeds

Set minimum gas price

Set pruning

Set custom ports

Download latest chain snapshot

Start service and check the logs

Set up Price Feeder

To run pricefeeder you validator should be in active set. Otherwise price feeder will not vote on periods.

Install the pricefeeder binary and create directory for pricefeeder configuration

Check price-feeder version

version: HEAD-5d46ed438d33d7904c0d947ebc6a3dd48ce0de59 commit: 5d46ed438d33d7904c0d947ebc6a3dd48ce0de59

Wallet

Create new wallet for pricefeeder and save 24 word mnemonic phrase

Export keyring password

Set up variables

Fund the pricefeeder-wallet with some testnet tokens

In order to make pricefeeder work, it needs some tokens to pay for transaction fees

This command will send 1 OJO to pricefeeder-wallet from your main wallet

Check the balance

Delegate pricefeeder responsibility

As a validator, if you’d like another account to post prices on your behalf (i.e. you don’t want your validator mnemonic sending txs), you can delegate pricefeeder responsibilities to another address.

Check linked pricefeeder address

Set pricefeeder configuration values

Setup the systemd service

Register and start the systemd service

View pricefeeder logs

Successfull Log examples:

Also you can check that your pricefeeder-wallet is doing transactions on chain at Chain Explorer: https://explorer.kjnodes.com/ojo-testnet Price Feeder Transactions image

Useful commands

Check current voting windows progress

Check missed oracle votes per slashing window

END

Last updated