RPC, API, gRPC
gRPC:
ojo-testnet-grpc.itrocket.net:443
Peers, Seeds, Live Peers, Addrbook
peers:
d2489830a5e91ec214edfc54756512e4f89f2609@ojo-testnet-peer.itrocket.net:12656
seeds:
7186f24ace7f4f2606f56f750c2684d387dc39ac@ojo-testnet-seed.itrocket.net:12656
live peers: (0 active)
PEERS="d2489830a5e91ec214edfc54756512e4f89f2609@ojo-testnet-peer.itrocket.net:12656"
sed -i -e "/^\[p2p\]/,/^\[/{s/^[[:space:]]*persistent_peers *=.*/persistent_peers = \"$PEERS\"/}" $HOME/.ojo/config/config.toml
peers scanner:
PEERS="[email protected]:39656,[email protected]:12656,[email protected]:33656,[email protected]:33656,[email protected]:50656,[email protected]:22656,[email protected]:26696,[email protected]:7330,[email protected]:36656,[email protected]:31656,[email protected]:47656,[email protected]:20656,18300f0a5973798c3900fe51ff255bb6bca982f9@ojo-testnet-rpc.stake-town.com:36656,[email protected]:26696,[email protected]:38656,[email protected]:25356,[email protected]:37096"
sed -i -e "/^\[p2p\]/,/^\[/{s/^[[:space:]]*persistent_peers *=.*/persistent_peers = \"$PEERS\"/}" $HOME/.ojo/config/config.toml
addrbook: (upd 1h)
wget -O $HOME/.ojo/config/addrbook.json https://server-4.itrocket.net/testnet/ojo/addrbook.json
genesis:
wget -O $HOME/.ojo/config/genesis.json https://server-4.itrocket.net/testnet/ojo/genesis.json
Snapshot
prunedupdated every available 24/7 (every server stores last 2 snapshots)
height: Loading...0 blocks agoBdb:
sudo systemctl stop ojod
cp $HOME/.ojo/data/priv_validator_state.json $HOME/.ojo/priv_validator_state.json.backup
rm -rf $HOME/.ojo/data
curl https://server-4.itrocket.net/testnet/ojo/null | lz4 -dc - | tar -xf - -C $HOME/.ojo
mv $HOME/.ojo/priv_validator_state.json.backup $HOME/.ojo/data/priv_validator_state.json
sudo systemctl restart ojod && sudo journalctl -u ojod -f
State Sync
If you don't want to wait for a long synchronization you can use:
sudo systemctl stop ojod
cp $HOME/.ojo/data/priv_validator_state.json $HOME/.ojo/priv_validator_state.json.backup
ojod tendermint unsafe-reset-all --home $HOME/.ojo
peers="d2489830a5e91ec214edfc54756512e4f89f2609@ojo-testnet-peer.itrocket.net:12656"
SNAP_RPC="https://ojo-testnet-rpc.itrocket.net:443"
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" $HOME/.ojo/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/.ojo/config/config.toml
mv $HOME/.ojo/priv_validator_state.json.backup $HOME/.ojo/data/priv_validator_state.json
sudo systemctl restart ojod && sudo journalctl -u ojod -f
Wasm
Sorry, this project does not support WebAssembly.