Peers, Seeds, Live Peers, Addrbook

peers:

c2a6cc9b3fa468624b2683b54790eb339db45cbf@story-testnet-peer.itrocket.net:26656

seeds:

434af9dae402ab9f1c8a8fc15eae2d68b5be3387@story-testnet-seed.itrocket.net:29656

live peers: (0 active)

PEERS="c2a6cc9b3fa468624b2683b54790eb339db45cbf@story-testnet-peer.itrocket.net:26656"
sed -i -e "/^\[p2p\]/,/^\[/{s/^[[:space:]]*persistent_peers *=.*/persistent_peers = \"$PEERS\"/}" $HOME/.story/story/config/config.toml

peers scanner:

PEERS="[email protected]:26656,[email protected]:26656,[email protected]:26656,c2a6cc9b3fa468624b2683b54790eb339db45cbf@story-testnet-rpc.itrocket.net:26656,[email protected]:26656,[email protected]:27136,d5519e378247dfb61dfe90652d1fe3e2b3005a5b@story-testnet.rpc.kjnodes.com:26656,a253e9f25f760d5d152425b70df17adb1ece1dd8@story-testnet-cosmos-rpc.crouton.digital:29856,[email protected]:26656,[email protected]:26656,[email protected]:30656,[email protected]:26656,[email protected]:26656,[email protected]:3610,[email protected]:16756,[email protected]:26656,[email protected]:26656,[email protected]:41656,[email protected]:26656,[email protected]:26656"
sed -i -e "/^\[p2p\]/,/^\[/{s/^[[:space:]]*persistent_peers *=.*/persistent_peers = \"$PEERS\"/}" $HOME/.story/story/config/config.toml

addrbook: (upd 1h)

wget -O $HOME/.story/story/config/addrbook.json https://server-3.itrocket.net/testnet/story/addrbook.json

genesis:

wget -O $HOME/.story/story/config/genesis.json https://server-3.itrocket.net/testnet/story/genesis.json

enode:

geth --exec 'admin.addPeer("enode://8b815ccc91128415246e1ab62ab0c3ed2d4bb7762c7a3a5059f6a12bb5c5188b376831c15888cff6e183ad1d1ec5911a60d202854fb226ba7728e8ba484ca13a@story-testnet-enode.itrocket.net:30301")' attach ~/.story/geth/odyssey/geth.ipc
sudo systemctl restart story-geth && sudo journalctl -u story-geth -f

Auto Snapshot (AutoSnap)

Shows snapshots, estimates download time, and monitors sync status after snapshot installation.All in one script. Simple & Convenient.
source <(curl -s https://itrocket.net/api/testnet/story/autosnap/)

Snapshot (pruned)

## Snapshot is not available yet

Archive Snapshot

## Archive snapshot is not available yet

State Sync

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

cd $HOME
sudo systemctl stop story story-geth

cp $HOME/.story/story/data/priv_validator_state.json $HOME/.story/story/priv_validator_state.json.backup
rm -rf $HOME/.story/story/data
mkdir $HOME/.story/story/data
mv $HOME/.story/story/priv_validator_state.json.backup $HOME/.story/story/data/priv_validator_state.json

peers="c2a6cc9b3fa468624b2683b54790eb339db45cbf@story-testnet-peer.itrocket.net:26656"  
SNAP_RPC="https://story-testnet-rpc.itrocket.net:443"

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

LATEST_HEIGHT=$(curl -s $SNAP_RPC/block | jq -r .result.block.header.height);
BLOCK_HEIGHT=$((LATEST_HEIGHT - 1000));
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/.story/story/config/config.toml

sudo systemctl restart story story-geth && sudo journalctl -u story -f
logo
Copyright © 2024 ITRocket. All Rights Reserved.