Testnet
Overview
The current HAQQ version of testedge2 is v1.9.1.
Sources of all scripts are here github
Quickstart
Battle tested on Ubuntu LTS 22.04
Install packages:
sudo apt-get install curl git make gcc liblz4-tool build-essential jq bzip2 -y
You can try to find latest compiled binary for your arch:
https://github.com/haqq-network/haqq/releases/tag/v1.9.1
Preresquisites for compile from source
make&gccGo 1.23+
Easy Go compiler installation:
bash <(curl -s https://raw.githubusercontent.com/haqq-network/mainnet/master/install_go.sh) && \
source $HOME/.bash_profile
Build from source:
cd $HOME
git clone -b v1.9.1 https://github.com/haqq-network/haqq
cd haqq
make install
Check binary version:
haqq@haqq-node:~# haqqd -v
haqqd version 1.9.1 5998c256a2acc8fb523795cd5c9374716952c014
Run pipline
init foldersdownload genesis file for testnetdownload current addrbookdownload and run state sync settings scriptstart
CUSTOM_MONIKER="haqq_node_testedge2"
haqqd init $CUSTOM_MONIKER --chain-id haqq_54211-3
# Set chain in client.toml
sed -i.bak 's/^chain-id = .*/chain-id = "haqq_54211-3"/' $HOME/.haqqd/config/client.toml
# Prepare genesis file for TestEdge(haqq_54211-3)
curl -OL https://raw.githubusercontent.com/haqq-network/testnets/main/TestEdge2/genesis.tar.bz2 &&\
bzip2 -d genesis.tar.bz2 && tar -xvf genesis.tar &&\
mv genesis.json $HOME/.haqqd/config/genesis.json
# Prepare addrbook
curl -OL https://raw.githubusercontent.com/haqq-network/testnets/main/TestEdge2/addrbook.json &&\
mv addrbook.json $HOME/.haqqd/config/addrbook.json
# Configure State sync
curl -OL https://raw.githubusercontent.com/haqq-network/testnets/main/TestEdge2/state_sync.sh &&\
sh state_sync.sh
# Start Haqq
haqqd start
Upgrade to Validator Node
You now have an active full node. What's the next step? You can upgrade your full node to become a Haqq Validator. The top 150 validators have the ability to propose new blocks to the Haqq Network. Continue onto the Run a Validator..