7f607b5d6a5885888f65f219440c07867eee72ff@23.88.5.169:22656
PEERS=$(curl -s --max-time 3 --retry 2 --retry-connrefused "https://snapshots.liveraven.net/snapshots/testnet/fiamma/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/.fiamma/config/config.toml"
echo -e "\nConfiguration file updated successfully.\n"
fi
curl -Ls https://snapshots.liveraven.net/snapshots/testnet/fiamma/addrbook.json > $HOME/.fiamma/config/addrbook.json
curl -Ls https://snapshots.liveraven.net/snapshots/testnet/fiamma/genesis.json > $HOME/.fiamma/config/genesis.json