githubEdit

Cosmos Hub Node Setup

Follow this guide to run your own Cosmos Hub node and use it for your Lava Provider.

This is not financial advise. All information provided here are sourced from the following sites: https://services.kjnodes.com/mainnet/cosmoshub/arrow-up-right https://nodestake.org/cosmosarrow-up-right https://docs.cosmos.network/v0.50/user/run-node/run-productionarrow-up-right https://docs.lavanet.xyz/cosmoshub-nodearrow-up-right

Hardware requirements: RAM: 64 GB RAM Storage: 2 TB NVME SSD OS: Linux 22.04 Rent a server here (optional): https://www.interserver.net/r/950716arrow-up-right

Firewall Settings

Run the following commands:

sudo ufw default deny incoming
sudo ufw default allow outgoing

sudo ufw allow 22

#Allowed Ports
sudo ufw allow 26656/tcp
sudo ufw allow 26657/tcp
sudo ufw allow 26660/tcp
sudo ufw allow 9090/tcp
sudo ufw allow 1317/tcp

sudo ufw enable

These are the default ports that Cosmos Hub uses. You can change it depending on your machine.

For reference, this is what I use for my servers:

Set Node name

Change it to anything you like.

Install dependencies

Update system and install build tools

Install Go

Download and build binaries

Install Cosmovisor and create a service

Set node configuration

Initialize the node

Set Ports

This is a more simplified command to manually set the Ports of your LavaNet node. You can manually change it depending on your needs. Make sure there are no conflicts as this might cause the node to not run.

Download latest chain snapshot

Start service and check the logs

Congratulations. You are now running a Stargaze Node.

(Optional)

Alternate Snapshot from NodeStake. By doing the following steps, this will clear any snapshot you have download. Backup your /data folder in case you need it. Make sure to set the correct pruning settings for this snapshot before running your node.

Stop your Node. Run the following commands:

Some Useful commands

Run the following to check connected peers:

Check sync status:

Alias commands

I use the following to replace the long commands above. It might differ depending on your configuration.

Last updated