This repository has been archived by the owner on Oct 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'haqq-network:master' into master
- Loading branch information
Showing
103 changed files
with
142,977 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,70 +1,49 @@ | ||
![haqq (1)](https://user-images.githubusercontent.com/104348282/188024190-b43f56d0-2dc6-4e4a-be0e-a7e9f615f751.png) | ||
# Prepare intensivized testnet Haqq | ||
*Instructions on how to prepare for the testnet* | ||
![haqq](https://user-images.githubusercontent.com/94483941/189324668-2e070db6-f0b6-4ddc-bc7c-f613ec404279.png) | ||
<h3>🚨 Genesis update guide haqq_54211-3</h3> | ||
<i>For those who already have a node installed</i> | ||
|
||
**Update packages and install required packages** | ||
Stop node | ||
```bash | ||
sudo apt update && sudo apt upgrade -y && \ | ||
sudo apt install curl tar wget clang pkg-config libssl-dev jq build-essential bsdmainutils git make ncdu gcc git jq chrony liblz4-tool -y | ||
sudo systemctl stop haqqd | ||
``` | ||
|
||
**Install Go 1.18.3** | ||
Download new genesis | ||
```bash | ||
wget https://golang.org/dl/go1.18.3.linux-amd64.tar.gz; \ | ||
rm -rv /usr/local/go; \ | ||
tar -C /usr/local -xzf go1.18.3.linux-amd64.tar.gz && \ | ||
rm -v go1.18.3.linux-amd64.tar.gz && \ | ||
echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> ~/.bash_profile && \ | ||
source ~/.bash_profile && \ | ||
go version > /dev/null | ||
cd $HOME/.haqqd/config && rm -rf genesis.json && wget https://github.com/haqq-network/validators-contest/raw/master/genesis.json | ||
``` | ||
|
||
**Install binary project** | ||
Check genesis.json | ||
```bash | ||
cd $HOME && git clone https://github.com/haqq-network/haqq && \ | ||
cd haqq && \ | ||
make install && \ | ||
haqqd version | ||
sha256sum $HOME/.haqqd/config/genesis.json | ||
``` | ||
sha256sum: b93f2650bdf560cab2cf7706ecee72bfba6d947fa57f8b1b8cb887f8b428233f | ||
|
||
**Init moniker and set chainid** | ||
<b>Disable state-sync in $HOME/.haqqd/config/config.toml.</b></br> | ||
<b>Change the enable parameter to false</b> | ||
```bash | ||
haqqd init YOURMONIKER --chain-id haqq_54211-2 && \ | ||
haqqd config chain-id haqq_54211-2 | ||
[statesync] | ||
enable = false | ||
``` | ||
|
||
**Create wallet** | ||
Execute unsafe-reset-all | ||
```bash | ||
haqqd keys add YOURWALLETNAME | ||
haqqd tendermint unsafe-reset-all --home=$HOME/.haqqd | ||
``` | ||
|
||
**Add genesis account** | ||
Set chain haqq_54211-3 | ||
```bash | ||
haqqd add-genesis-account YOURWALLETNAME 10000000000000000000aISLM | ||
haqqd config chain-id haqq_54211-3 | ||
``` | ||
|
||
**Create gentx** | ||
Insertion of seeds and peers | ||
```bash | ||
haqqd gentx YOURWALLETNAME 10000000000000000000aISLM \ | ||
--chain-id=haqq_54211-2 \ | ||
--moniker="YOURMONIKERNAME" \ | ||
--commission-max-change-rate 0.05 \ | ||
--commission-max-rate 0.20 \ | ||
--commission-rate 0.05 \ | ||
--website="" \ | ||
--security-contact="" \ | ||
--identity="" \ | ||
--details="" | ||
seeds="62bf004201a90ce00df6f69390378c3d90f6dd7e@seed2.testedge2.haqq.network:26656,23a1176c9911eac442d6d1bf15f92eeabb3981d5@seed1.testedge2.haqq.network:26656" | ||
peers="[email protected]:33656,[email protected]:29656,[email protected]:26556,[email protected]:29956,[email protected]:20116,[email protected]:45656,[email protected]:36656,[email protected]:26656,[email protected]:26656,[email protected]:36656,[email protected]:32656" | ||
sed -i -e 's|^seeds *=.*|seeds = "'$seeds'"|; s|^persistent_peers *=.*|persistent_peers = "'$peers'"|' $HOME/.haqqd/config/config.toml | ||
``` | ||
|
||
After executing this command, you have a gentx. Submit a pull request (gentx folder) with the given gentx | ||
Run the service file and see the logs of your node | ||
```bash | ||
File Genesis transaction written to "/.haqqd/config/gentx/gentx-xxx.json" | ||
sudo systemctl restart haqqd && \ | ||
sudo journalctl -u haqqd -f -o cat | ||
``` | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
Oops, something went wrong.