Agoric Validator Guide
Mainnet 0
Prerequisite
Hardware
see Validator Hardware Requirements
The Agoric platform currently uses Node.js (version 14.15.0 or higher) to evaluate Javascript smart contracts. See Node.js download instructions for details. In this example, we will be installing Node.js on a fresh install of Ubuntu 20.04:
# Download the nodesource PPA for Node.js
curl https://deb.nodesource.com/setup_14.x | sudo bash
# Download the Yarn repository configuration
# See instructions on https://legacy.yarnpkg.com/en/docs/install/
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
# Update Ubuntu
sudo apt update
sudo apt upgrade -y
# Install Node.js, Yarn, and build tools
# Install jq for formatting of JSON data
sudo apt install nodejs=14.* yarn build-essential jq -yInstall Go
Agoric's Cosmos integration is built using Go and requires Go version 1.15+. In this example, we will be installing Go on the above Ubuntu 20.04 with Node.js installed:
validate go version
Validator Node from scratch.
If this is the first time you're running a validator you have two options to get your node synced up to the current upgrade : agoric-upgrade-5 .
OPTION 1:
you'll have to first sync the previous version tagged agoric-3.1 in releases : https://github.com/Agoric/ag0/releases
once synced you can then continue on to upgrade to version: agoric-upgrade-5
FAQ
why can't i sync with the upgrade version agoric-upgrade-5 ? Answer: When our team attempted to run with the current "upgrade" ; the node complains about an error below
Install Agoric phase0 rc1
Initialize your Validator:
Adjust configuration
Next, we want to adjust the validator configuration to add the peers and seeds from the network config:
Create your service file and sync node.
To sync our node, we will use systemd, which manages the Agoric Cosmos daemon and automatically restarts it in case of failure. To use systemd, we will create a service file:
If you decide to run from the console, you can just do the following:
To start syncing:
Some Useful commands to check the state of your node
Upgrading
once you are fully synced with the previous version your node will stop and disconnect: not to worry continue to the upgrade.
note: Agoric mainnet 0 does not have the Agoric SDK enabled. read more here
Install agoric-upgrade-5.
Check to see if you're syncing
Option 2:
Your second option to get synced with the current version is to download a snapshot to cut sync time.
Download our latest Snapshot
Last updated