Guide
Here is a node installation guide
Preparing the server for installation
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
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
Download binaries
cd $HOME
git clone https://github.com/humansdotai/humans
cd humans || return
git checkout v0.2.2
make install
humansd version # 0.2.2
Check version
humansd version --long
Commit
humansd init <YOUR_MONIKER> --chain-id humans_1089-1
humansd config chain-id humans_1089-1
Add wallet
humansd keys add <WALLET>
Recover wallet
humansd keys add <WALLET> --recover
Download Genesis
curl -s https://raw.githubusercontent.com/humansdotai/mainnets/main/mainnet/1/genesis_1089-1.json > $HOME/.humansd/config/genesis.json
Set up the minimum gas price and Peers/Seeds/Filter peers/MaxPeers
sed -i 's|^seeds *=.*|seeds = "'$SEEDS'"|; s|^persistent_peers *=.*|persistent_peers = "'$PEERS'"|' $HOME/.humansd/config/config.toml
sed -i 's|^pruning *=.*|pruning = "custom"|g' $HOME/.humansd/config/app.toml
sed -i 's|^pruning-keep-recent *=.*|pruning-keep-recent = "100"|g' $HOME/.humansd/config/app.toml
sed -i 's|^pruning-interval *=.*|pruning-interval = "10"|g' $HOME/.humansd/config/app.toml
sed -i 's|^snapshot-interval *=.*|snapshot-interval = 0|g' $HOME/.humansd/config/app.toml
sed -i 's|^minimum-gas-prices *=.*|minimum-gas-prices = "0.001aheart"|g' $HOME/.humansd/config/app.toml
sed -i 's|^prometheus *=.*|prometheus = true|' $HOME/.humansd/config/config.toml
Download addrbook
wget -O $HOME/.humans/config/addrbook.json "https://raw.githubusercontent.com/nodersteam/cosmos-adrbook/main/humans/addrbook.json"
Create a service file
sudo tee /etc/systemd/system/humansd.service > /dev/null << EOF
[Unit]
Description=Humans AI Node
After=network-online.target
[Service]
User=$USER
ExecStart=$(which humansd) start
Restart=on-failure
RestartSec=10
LimitNOFILE=10000
[Install]
WantedBy=multi-user.target
EOF
Use our StateSync
sudo systemctl stop humansd
SNAP_RPC=http://humans.rpc.nodersteam.com:22657
cp $HOME/.humans/data/priv_validator_state.json $HOME/.humans/priv_validator_state.json.backup
sed -i -e "/seeds =/ s/= .*/= \"$SEEDS\"/" $HOME/.humans/config/config.toml
LATEST_HEIGHT=$(curl -s $SNAP_RPC/block | jq -r .result.block.header.height); \
BLOCK_HEIGHT=$((LATEST_HEIGHT - 100)); \
TRUST_HASH=$(curl -s "$SNAP_RPC/block?height=$BLOCK_HEIGHT" | jq -r .result.block_id.hash)
echo $LATEST_HEIGHT $BLOCK_HEIGHT $TRUST_HASH
sed -i.bak -E "s|^(enable[[:space:]]+=[[:space:]]+).*$|\1true| ; \
s|^(rpc_servers[[:space:]]+=[[:space:]]+).*$|\1\"$SNAP_RPC,$SNAP_RPC\"| ; \
s|^(trust_height[[:space:]]+=[[:space:]]+).*$|\1$BLOCK_HEIGHT| ; \
s|^(trust_hash[[:space:]]+=[[:space:]]+).*$|\1\"$TRUST_HASH\"| ; \
s|^(seeds[[:space:]]+=[[:space:]]+).*$|\1\"\"|" $HOME/.humans/config/config.toml
Start node
sudo systemctl daemon-reload
sudo systemctl enable humansd
sudo systemctl start humansd
sudo journalctl -u humansd -f --no-hostname -o cat
Create validator
humansd tx staking create-validator \
--amount=1000000aheart \
--pubkey=$(humansd tendermint show-validator) \
--moniker="<YOUR_MONIKER>" \
--identity=<YOUR_KEYBASE_ID> \
--details="<YOUR_DETAILS>" \
--chain-id=humans_1089-1 \
--commission-rate=0.10 \
--commission-max-rate=0.20 \
--commission-max-change-rate=0.01 \
--min-self-delegation=1 \
--from=wallet \
--gas-prices=0.1aheart \
--gas-adjustment=1.5 \
--gas=auto \
-y
Delete Node
sudo systemctl stop humansd
sudo systemctl disable humansd
rm /etc/systemd/system/humansd.service
sudo systemctl daemon-reload
cd $HOME
rm -rf humans
rm -rf .humans
rm -rf $(which humansd)
Last updated