Migaloo Node Installation Guide

Chain ID: migaloo-1 | Current Node Version: v2.0.3

Install Go and Cosmovisor

Feel free to skip this step if you already have Go and Cosmovisor.

Install Go

We will use Go v1.19.3 as example here. The code below also cleanly removes any previous Go installation.

sudo rm -rvf /usr/local/go/
wget https://golang.org/dl/go1.19.3.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.19.3.linux-amd64.tar.gz
rm go1.19.3.linux-amd64.tar.gz

Configure Go

Unless you want to configure in a non-standard way, then set these in the ~/.profile file.

export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export GO111MODULE=on
export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin

Install Cosmovisor

We will use Cosmovisor v1.0.0 as example here.

go install github.com/cosmos/cosmos-sdk/cosmovisor/cmd/[email protected]

Install Node

Install the current version of node binary.

git clone https://github.com/White-Whale-Defi-Platform/migaloo-chain migaloo
cd migaloo
git checkout v2.0.3
make install

Configure Node

Initialize Node

Please replace YOUR_MONIKER with your own moniker.

migalood init YOUR_MONIKER --chain-id migaloo-1

Download Genesis

The genesis file link below is Polkachu's mirror download. The best practice is to find the official genesis download link.

wget -O genesis.json https://snapshots.polkachu.com/genesis/migaloo/genesis.json --inet4-only
mv genesis.json ~/.migalood/config

Configure Seed

Using a seed node to bootstrap is the best practice in our view. Alternatively, you can use addrbook or persistent_peers.

sed -i 's/seeds = ""/seeds = "ade4d8bc8cbe014af6ebdf3cb7b1e9ad36f4[email protected]:20756"/' ~/.migalood/config/config.toml

Launch Node

Configure Cosmovisor Folder

Create Cosmovisor folders and load the node binary.

# Create Cosmovisor Folders
mkdir -p ~/.migalood/cosmovisor/genesis/bin
mkdir -p ~/.migalood/cosmovisor/upgrades

# Load Node Binary into Cosmovisor Folder
cp ~/go/bin/migalood ~/.migalood/cosmovisor/genesis/bin

Create Service File

Create a migaloo.service file in the /etc/systemd/system folder with the following code snippet. Make sure to replace USER with your Linux user name. You need sudo previlege to do this step.

Description="migaloo node"

ExecStart=/home/USER/go/bin/cosmovisor start


Download Snapshot

Please use our popular snapshot download service to download and extract Migaloo snapshot.

Start Node Service

# Enable service
sudo systemctl enable migaloo.service

# Start service
sudo service migaloo start

# Check logs
sudo journalctl -fu migaloo

Other Considerations

This installation guide is the bare minimum to get a node started. You should consider the following as you become a more experienced node operator.

  • Use Ansible script to automate the node installation process
  • Configure firewall to close most ports while only leaving the p2p port (typically 26656) open
  • Use custom ports for each node so you can run multiple nodes on the same server

If you find a bug in this installation guide, please reach out to our Discord Server and let us know.