Skip to content

haqq-network/testedge3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Haqq Network - TestEdge3

Overview

The current version of the HAQQ TestEdge3 is v1.8.1.

Battle tested on Ubuntu LTS 22.04

Prerequisites

These prerequisites are necessary to ensure a smooth setup and successful operation of the node installation. Please review and complete the following steps before proceeding.

Note: If these steps have been already completed, skip them.

Packages installation

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

Go installation

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

Haqq TestEdge3 node installation guide

All methods can be used, depending on preference or requirement.

Easy go script methods

Manual method

Binary installation

Binary can be downloaded from haqq official repository or built from source.

Download pre-compiled binary

Build binary from source

  • Clone the repo and build the binary:
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 node

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

haqqd config chain-id haqq_53211-3 && \
haqqd init $CUSTOM_MONIKER --chain-id haqq_53211-3

Download genesis

curl -L https://raw.githubusercontent.com/haqq-network/testedge3/master/genesis.json -o $HAQQD_DIR/config/genesis.json

Node bootstrap

Node can be bootstrapped using snapshot or state-sync.

State-sync

curl -OL https://raw.githubusercontent.com/haqq-network/testedge3/master/scripts/state_sync.sh && \
chmod +x state_sync.sh && \
./state_sync.sh $HAQQD_DIR

Snapshot

  • Configure seeds:
sed -i 's/seeds = ".*"/seeds = "5fa53a57f11ab3f1979df6cdd572a2cc6c519f5a@peer1.testedge3.haqq.network:26656,3baf1dedfebb985974c2c15d246aa6c821da1cf6@peer2.testedge3.haqq.network:26666,64dcbb5cf8b8b9f7c950bfa1a3eee339e98c94ca@peer3.testedge3.haqq.network:26676"/' $HAQQD_DIR/config/config.toml

Pruned snapshot download

curl -o - -L $(curl -s "https://pub-d737aae8c5d74559afafae6b5db96c99.r2.dev/index.json" | jq -r .pruned[0].link) | lz4 -c -d - | tar -x -C $HAQQD_DIR

Archive snapshot download

curl -o - -L $(curl -s "https://pub-d737aae8c5d74559afafae6b5db96c99.r2.dev/index.json" | jq -r .archive[0].link) | lz4 -c -d - | tar -x -C $HAQQD_DIR

Launch node

Node can be launched through a binary directly or a cosmovisor can be used.

Run haqq bin

haqqd start

Cosmovisor setup

  • Install cosmovisor binary:
go install cosmossdk.io/tools/cosmovisor/cmd/cosmovisor@latest
  • Create Cosmovisor folders and load the node binary:
mkdir -p $HAQQD_DIR/cosmovisor/genesis/bin && \
mkdir -p $HAQQD_DIR/cosmovisor/upgrades
cp $HOME/go/bin/haqqd $HAQQD_DIR/cosmovisor/genesis/bin
  • Create haqqd cosmovisor service:
sudo 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
  • Enable and start service:
sudo systemctl enable haqqd.service && \
sudo systemctl start haqqd.service
  • Check cosmovisor 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

Languages