Running a Node

The steps to successfully run a node on the Andromeda chain.

Install Prerequisites

sudo apt-get update && sudo apt upgrade -y
sudo apt-get install make build-essential git jq chrony -y
sudo apt install gcc

Increasing the default open files limit

This is to make sure that the nodes won't crash once the network grows larger and larger.

sudo su -c "echo 'fs.file-max = 65536' >> /etc/sysctl.conf"
sudo sysctl -p

Installing Go 1.20.x

You can find GoLang 1.20.x from here.

Updating Environment Variables

cat <<'EOF' >>$HOME/.profile
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export GO111MODULE=on
export GOBIN=$HOME/go/bin
export PATH=$PATH:/usr/local/go/bin:$GOBIN
EOF
source $HOME/.profile

Next we need to clone the source repo:

Initialize the Config Files

Now, your node environment should be ready to go! In order to sync up to the network, a few more parameters must be changed to proper specifics for the network:

Create new keys, or import existing wallet with BEP32 mnenomic phrase:

To recover existing wallet:

`gentx` Command

To generate your validators transaction (gentx) use the following command:

Then submit a pull request to the mainnet repo where you found the genesis.json

Create environment Variable:

Setting up persistent peers in config.toml

Add Persistent Peers to config.toml:

Now connect to some peers nodes by setting persistent_peers.

Example

Copy Genesis File:

Starting the Network

Your node should now be catching up to the current state of the network!

Create Validator Command

Replace <MONIKER> and <KEY_NAME> above.

Setup andromedad systemd service (copy and paste all to create the file service)

Enable and activate the andromedad service.

Insert content into andromedad.service:

Move file to systemd folder:

Check info about node:

Was this helpful?