Humans validator setup
May 3rd, 2023

Install dependencies

sudo apt update 
sudo apt install curl git jq lz4 build-essential 
sudo apt upgrade

Install Go

ver="1.19" && \
wget "https://golang.org/dl/go$ver.linux-amd64.tar.gz" && \
sudo rm -rf /usr/local/go && \
sudo tar -C /usr/local -xzf "go$ver.linux-amd64.tar.gz" && \
rm "go$ver.linux-amd64.tar.gz" && \
echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> $HOME/.bash_profile && \
source $HOME/.bash_profile && \
go version

Build binaries

cd $HOME
git clone https://github.com/humansdotai/humans
cd humans && git checkout tags/v0.1.0
make install

Create service

sudo tee /etc/systemd/system/humansd.service > /dev/null <<EOF
[Unit]
Description=humans
After=network-online.target

[Service]
User=$USER
ExecStart=$(which humansd) start
Restart=on-failure
RestartSec=3
LimitNOFILE=65535

[Install]
WantedBy=multi-user.target
EOF

Set config

humansd config chain-id humans_3000-1
humansd config keyring-backend test 

Init node

humansd init moniker --chain-id humans_3000-1

Add seeds

sed -i -e "s|^seeds =.|seeds = "c94e42eec8bcc7f6db81748a97e5f10d59710e95@135.181.138.160:26656"|" $HOME/.humansd/config/config.toml

Set minimum gas price

sed -i -e "s|^minimum-gas-prices =.|minimum-gas-prices = "0aheart"|" $HOME/.humansd/config/app.toml

Set pruning

sed -i -e 's|^pruning =.|pruning = "nothing"|' -e 's|^pruning-keep-recent =.|pruning-keep-recent = "100"|' -e 's|^pruning-keep-every =.|pruning-keep-every = "0"|' -e 's|^pruning-interval =.|pruning-interval = "19"|' $HOME/.humansd/config/app.toml

Start service and check the logs

sudo systemctl daemon-reload 
sudo systemctl enable humansd 
sudo systemctl start humansd

Create wallet

humansd keys add keys

Create validator

humansd tx staking create-validator \
  --amount 1000000uheart \
  --from keys \
  --commission-max-change-rate "0.1" \
  --commission-max-rate "0.2" \
  --commission-rate "0.1" \
  --min-self-delegation "1" \
  --pubkey  $(humansd tendermint show-validator) \
  --moniker moniker \
  --chain-id testnet-1 \
  --identity="" \
  --details="" \
  --website="" -y
Subscribe to cyberG|DVS
Receive the latest updates directly to your inbox.
Mint this entry as an NFT to add it to your collection.
Verification
This entry has been permanently stored onchain and signed by its creator.
More from cyberG|DVS

Skeleton

Skeleton

Skeleton