Humans
Stop humansd
service and reset database:
sudo systemctl stop humansd
humansd tendermint unsafe-reset-all --home $HOME/.humansd --keep-addr-book
PEER="b9f850b4a33632602046a590f685bc61a36a66e6@135.181.134.148:26656"
SNAP="https://rpc-humans.huginn.tech:443"
LATEST_HEIGHT=$(curl -s $SNAP/block | jq -r .result.block.header.height)
TRUST_HEIGHT=$((LATEST_HEIGHT - 1000))
TRUST_HASH=$(curl -s "$SNAP/block?height=$TRUST_HEIGHT" | jq -r .result.block_id.hash)
sed -i.bak -E "s|^(enable[[:space:]]+=[[:space:]]+).*$|\1true| ; \
s|^(rpc_servers[[:space:]]+=[[:space:]]+).*$|\1\"$SNAP,$SNAP\"| ; \
s|^(trust_height[[:space:]]+=[[:space:]]+).*$|\1$TRUST_HEIGHT| ; \
s|^(trust_hash[[:space:]]+=[[:space:]]+).*$|\1\"$TRUST_HASH\"|" $HOME/.humansd/config/config.toml
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$PEER\"/" $HOME/.humansd/config/config.toml
2- Run humansd and check logs
sudo systemctl start humansd
sudo journalctl -u humansd -f -o cat
Last updated