RPC, API, gRPC
gRPC:
union-testnet-grpc.itrocket.net:443
Peers, Seeds, Live Peers, Addrbook
peers:
a05dde8737e66c99260edfd45180055fe7f8bd9d@union-testnet-peer.itrocket.net:23656
seeds:
2812a4ae3ebfba02973535d05d2bbcc80b7d215f@union-testnet-seed.itrocket.net:23656
live peers: (0 active)
PEERS="a05dde8737e66c99260edfd45180055fe7f8bd9d@union-testnet-peer.itrocket.net:23656"
sed -i -e "/^\[p2p\]/,/^\[/{s/^[[:space:]]*persistent_peers *=.*/persistent_peers = \"$PEERS\"/}" $HOME/.union/config/config.toml
peers scanner:
PEERS="[email protected]:26656,a05dde8737e66c99260edfd45180055fe7f8bd9d@union-testnet-rpc.itrocket.net:23656,d5519e378247dfb61dfe90652d1fe3e2b3005a5b@union-testnet.rpc.kjnodes.com:17156,[email protected]:17156,[email protected]:24656,[email protected]:27101,[email protected]:35656,[email protected]:24656,[email protected]:24656,[email protected]:24656,[email protected]:32220,[email protected]:26656"
sed -i -e "/^\[p2p\]/,/^\[/{s/^[[:space:]]*persistent_peers *=.*/persistent_peers = \"$PEERS\"/}" $HOME/.union/config/config.toml
addrbook: (upd 1h)
wget -O $HOME/.union/config/addrbook.json https://server-4.itrocket.net/testnet/union/addrbook.json
genesis:
wget -O $HOME/.union/config/genesis.json https://server-4.itrocket.net/testnet/union/genesis.json
Snapshot
prunedupdated every available 24/7 (every server stores last 2 snapshots)
height: Loading...0 blocks agoBdb:
sudo systemctl stop uniond
cp $HOME/.union/data/priv_validator_state.json $HOME/.union/priv_validator_state.json.backup
rm -rf $HOME/.union/data
curl https://server-4.itrocket.net/testnet/union/null | lz4 -dc - | tar -xf - -C $HOME/.union
mv $HOME/.union/priv_validator_state.json.backup $HOME/.union/data/priv_validator_state.json
sudo systemctl restart uniond && sudo journalctl -u uniond -f
State Sync
If you don't want to wait for a long synchronization you can use:
sudo systemctl stop uniond
cp $HOME/.union/data/priv_validator_state.json $HOME/.union/priv_validator_state.json.backup
uniond tendermint unsafe-reset-all --home $HOME/.union --home $HOME/.union
peers="a05dde8737e66c99260edfd45180055fe7f8bd9d@union-testnet-peer.itrocket.net:23656"
SNAP_RPC="https://union-testnet-rpc.itrocket.net:443"
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" $HOME/.union/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/.union/config/config.toml
mv $HOME/.union/priv_validator_state.json.backup $HOME/.union/data/priv_validator_state.json
sudo systemctl restart uniond && sudo journalctl -u uniond -f
Wasm
Sorry, this project does not support WebAssembly.