Peers, Seeds, Live Peers, Addrbook

peers:

5e51671241340f1d1e1409a9e0cc4474820bf782@humans-mainnet-peer.itrocket.net:17656

seeds:

f8006da7d742777eeca0194b94586c8f147be4f6@humans-mainnet-seed.itrocket.net:17656

live peers: (0 active)

PEERS="5e51671241340f1d1e1409a9e0cc4474820bf782@humans-mainnet-peer.itrocket.net:17656"
sed -i -e "/^\[p2p\]/,/^\[/{s/^[[:space:]]*persistent_peers *=.*/persistent_peers = \"$PEERS\"/}" $HOME/.humansd/config/config.toml

peers scanner:

PEERS="[email protected]:12256,[email protected]:12256,[email protected]:33656,[email protected]:25656,5e51671241340f1d1e1409a9e0cc4474820bf782@humans-mainnet-rpc.itrocket.net:17656,[email protected]:26656,[email protected]:05656,[email protected]:12656"
sed -i -e "/^\[p2p\]/,/^\[/{s/^[[:space:]]*persistent_peers *=.*/persistent_peers = \"$PEERS\"/}" $HOME/.humansd/config/config.toml

addrbook: (upd 1h)

wget -O $HOME/.humansd/config/addrbook.json https://server-3.itrocket.net/mainnet/humans/addrbook.json

genesis:

wget -O $HOME/.humansd/config/genesis.json https://server-3.itrocket.net/mainnet/humans/genesis.json

Snapshot

pruned
updated every available 24/7 (every server stores last 2 snapshots)
height: Loading...0 blocks agoBdb:
sudo systemctl stop humansd
cp $HOME/.humansd/data/priv_validator_state.json $HOME/.humansd/priv_validator_state.json.backup
rm -rf $HOME/.humansd/data
curl https://server-3.itrocket.net/mainnet/humans/null | lz4 -dc - | tar -xf - -C $HOME/.humansd
mv $HOME/.humansd/priv_validator_state.json.backup $HOME/.humansd/data/priv_validator_state.json
sudo systemctl restart humansd && sudo journalctl -u humansd -f

State Sync

If you don't want to wait for a long synchronization you can use:

sudo systemctl stop humansd

cp $HOME/.humansd/data/priv_validator_state.json $HOME/.humansd/priv_validator_state.json.backup
humansd tendermint unsafe-reset-all --home $HOME/.humansd

peers="5e51671241340f1d1e1409a9e0cc4474820bf782@humans-mainnet-peer.itrocket.net:17656"  
SNAP_RPC="https://humans-mainnet-rpc.itrocket.net:443"

sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" $HOME/.humansd/config/config.toml 

LATEST_HEIGHT=$(curl -s $SNAP_RPC/block | jq -r .result.block.header.height);
BLOCK_HEIGHT=$((LATEST_HEIGHT - 2000));
TRUST_HASH=$(curl -s "$SNAP_RPC/block?height=$BLOCK_HEIGHT" | jq -r .result.block_id.hash) 

echo $LATEST_HEIGHT $BLOCK_HEIGHT $TRUST_HASH && sleep 2

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/.humansd/config/config.toml

mv $HOME/.humansd/priv_validator_state.json.backup $HOME/.humansd/data/priv_validator_state.json

sudo systemctl restart humansd && sudo journalctl -u humansd -f

Wasm

Sorry, this project does not support WebAssembly.

logo
Copyright © 2024 ITRocket. All Rights Reserved.