Skip to content

haqq-network/mainnet

Repository files navigation

Haqq Network - MainNet

Overview

The current version of the HAQQ MainNet is v1.8.1. To bootstrap a mainnet node, use State Sync and synchronize a snapshot from our official seed nodes.

Quickstart

Battle tested on Ubuntu LTS 22.04

You can do the same yourself

Install packages:

sudo apt-get update && \
sudo apt-get install curl git make gcc liblz4-tool build-essential git-lfs jq aria2 -y

Preresquisites for compile from source

Easy GO compiler and HAQQ node installation

curl -OL https://raw.githubusercontent.com/haqq-network/mainnet/master/install_go.sh && \
curl -OL https://raw.githubusercontent.com/haqq-network/mainnet/master/install_haqq.sh && \
sh install_go.sh && \ 
source $HOME/.bash_profile && \
sh install_haqq.sh

Do the same manually:

Download latest binary for your arch:
https://github.com/haqq-network/haqq/releases/tag/v1.8.1

Build from source:

cd $HOME
git clone -b v1.8.1 https://github.com/haqq-network/haqq
cd haqq
make install

Verify binary version:

haqq@haqq-node:~# haqqd -v
haqqd version "1.8.1" 32131e743799979c7317c2a394e008e74f06ba7e

Initialize and start HAQQ

export CUSTOM_MONIKER="mainnet_seed_node"
export HAQQD_DIR="$HOME/.haqqd"

haqqd config chain-id haqq_11235-1 && \
haqqd init $CUSTOM_MONIKER --chain-id haqq_11235-1

# Prepare genesis file for mainet(haqq_11235-1)
curl -L https://raw.githubusercontent.com/haqq-network/mainnet/master/genesis.json -o $HAQQD_DIR/config/genesis.json

# Prepare addrbook
curl -L https://raw.githubusercontent.com/haqq-network/mainnet/master/addrbook.json -o $HAQQD_DIR/config/addrbook.json

# Configure State sync
curl -OL https://raw.githubusercontent.com/haqq-network/mainnet/master/state_sync.sh && \
chmod +x state_sync.sh && \
./state_sync.sh $HAQQD_DIR

# Start Haqq
haqqd start

Cosmovisor setup

  1. Install cosmovisor bin
go install cosmossdk.io/tools/cosmovisor/cmd/cosmovisor@latest
  1. Create cosmovisor folders
mkdir -p $HAQQD_DIR/cosmovisor/genesis/bin && \
mkdir -p $HAQQD_DIR/cosmovisor/upgrades
  1. Copy node binary into Cosmovisor folder
cp $HOME/go/bin/haqqd $HAQQD_DIR/cosmovisor/genesis/bin
  1. Create haqqd cosmovisor service
nano /etc/systemd/system/haqqd.service
[Unit]
Description="haqqd cosmovisor"
After=network-online.target

[Service]
User=<your user>
ExecStart=/home/<your user>/go/bin/cosmovisor run start
Restart=always
RestartSec=3
LimitNOFILE=4096
Environment="DAEMON_NAME=haqqd"
Environment="DAEMON_HOME=$HAQQD_DIR"
Environment="DAEMON_ALLOW_DOWNLOAD_BINARIES=true"
Environment="DAEMON_RESTART_AFTER_UPGRADE=true"
Environment="UNSAFE_SKIP_BACKUP=false"

[Install]
WantedBy=multi-user.target
  1. Enable and start service
sudo systemctl enable haqqd.service && \
sudo systemctl start haqqd.service
  1. Check logs
sudo journalctl --system -fu haqqd

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages