Api & Sync
Explorer: https://explorer.nodesync.top/BitBadges-Mainnet
API:
https://bitbadges-api.nodesync.top
RPC:
https://bitbadges-rpc.nodesync.top
Peers Scanner:
Auto-updated every 6 hours
Loading peers...
StateSync
sudo systemctl stop bitbadgeschaind
bitbadgeschaind tendermint unsafe-reset-all --home $HOME/.bitbadgeschain --keep-addr-book
SNAP_RPC="https://bitbadges-rpc.nodesync.top:443"
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)
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\"|" $HOME/.bitbadgeschain/config/config.toml
sudo systemctl restart bitbadgeschaind
sudo journalctl -u bitbadgeschaind -f -o cat
Snapshot
sudo systemctl stop bitbadgeschaind
cp $HOME/.bitbadgeschain/data/priv_validator_state.json $HOME/.bitbadgeschain/priv_validator_state.json.backup
bitbadgeschaind tendermint unsafe-reset-all --home $HOME/.bitbadgeschain --keep-addr-book
curl -L https://snapshots.nodesync.top/Mainnet/BitBadges/latest.tar.lz4 | lz4 -dc - | tar -xf - -C $HOME/.bitbadgeschain
mv $HOME/.bitbadgeschain/priv_validator_state.json.backup $HOME/.bitbadgeschain/data/priv_validator_state.json
sudo systemctl restart bitbadgeschaind && sudo journalctl -u bitbadgeschaind -fo cat