RPC Table
RPC and peers are updated every 5 hours
MONIKER | INDEXER | HEIGHT ▲ | RPC |
---|
Live peers
Script for automatic update Story when reaching the desired height
Story autoupdate
1. Fill in the version and update height. If RPC is not available, change RPC
2. Check the functionality of the RPC. Insert the command into the terminal and press "Enter". The network height should appear
curl -s https://story-rpc.tarabukin.work | jq -r .result.sync_info.latest_block_height
3. If RPC works copy the code below. Paste it into your terminal and press "Enter". The update file '$HOME/storyupd.sh' is created
sudo tee $HOME/storyupd.sh > /dev/null <<EOF
#!/bin/bash
rm -rf story
git clone https://github.com/piplabs/story
cd \$HOME/story
git checkout v0.11.0
go build -o story ./client
sleep 1
for((;;)); do
height=\$(curl -s https://story-rpc.tarabukin.work/status | jq -r .result.sync_info.latest_block_height)
if ((height == 1325860)); then
systemctl stop story-testnet.service
sudo mv \$HOME/story/story \$(which story)
echo "restart"
break
else
echo \$height
fi
sleep 1
done
sudo systemctl restart story-testnet.service && sudo journalctl -u story-testnet.service -f
EOF
4. Run script in tmux. Don't kill the session with "CTRL+C" before update is completed, if you want to disconnect the session use "CTRL+B D"
cd $HOME
chmod a+x storyupd.sh
tmux new -s story-upgrade "sudo bash ./storyupd.sh"