mirror of
https://github.com/mempool/mempool.git
synced 2024-11-19 09:52:14 +01:00
26 lines
361 B
Bash
Executable File
26 lines
361 B
Bash
Executable File
#!/usr/bin/env zsh
|
|
hostname=$(hostname)
|
|
|
|
heat()
|
|
{
|
|
echo "$1"
|
|
curl -i -s "$1" | head -1
|
|
}
|
|
|
|
heatURLs=(
|
|
'/api/v1/fees/recommended'
|
|
'/api/v1/accelerations'
|
|
)
|
|
|
|
while true
|
|
do
|
|
echo "starting heat cache cycle..."
|
|
|
|
for url in $heatURLs
|
|
do
|
|
heat "https://${hostname}${url}"
|
|
done
|
|
|
|
sleep 0.5
|
|
done
|