e6575e39599afba59bbe3422284b22edfb1adafb@23.88.5.169:24656
PEERS=$(curl -s --max-time 3 --retry 2 --retry-connrefused "https://snapshots.liveraven.net/snapshots/testnet/side-protocol/peers.txt")
if [ -z "$PEERS" ] || [[ "$PEERS" == *"404 Not Found"* ]] || [[ "$PEERS" == *"curl:"* ]]; then
echo "No peers were retrieved from the URL."
else
echo -e "\nPEERS: "$PEERS""
sed -i "s/^persistent_peers *=.*/persistent_peers = "$PEERS"/" "$HOME/.side/config/config.toml"
echo -e "\nConfiguration file updated successfully.\n"
fi
curl -Ls https://snapshots.liveraven.net/snapshots/testnet/side-protocol/addrbook.json > $HOME/.side/config/addrbook.json
curl -Ls https://snapshots.liveraven.net/snapshots/testnet/side-protocol/genesis.json > $HOME/.side/config/genesis.json