mirror of
https://github.com/mempool/mempool.git
synced 2024-12-29 09:44:26 +01:00
Merge pull request #1483 from mempool/nymkappa/feature/cache-warn-mining
Add missing mining API endpoint to cache warmer
This commit is contained in:
commit
188723cb55
@ -36,6 +36,7 @@ do for url in / \
|
|||||||
'/api/v1/mining/hashrate/pools/3y' \
|
'/api/v1/mining/hashrate/pools/3y' \
|
||||||
'/api/v1/mining/hashrate/pools/all' \
|
'/api/v1/mining/hashrate/pools/all' \
|
||||||
'/api/v1/mining/reward-stats/144' \
|
'/api/v1/mining/reward-stats/144' \
|
||||||
|
'/api/v1/mining/blocks-extras' \
|
||||||
|
|
||||||
do
|
do
|
||||||
curl -s "https://${hostname}${url}" >/dev/null
|
curl -s "https://${hostname}${url}" >/dev/null
|
||||||
@ -43,8 +44,9 @@ do for url in / \
|
|||||||
|
|
||||||
for slug in $slugs
|
for slug in $slugs
|
||||||
do
|
do
|
||||||
curl -s "https://${hostname}/api/v1/mining/pool/${slug}/hashrate" >/dev/null
|
|
||||||
curl -s "https://${hostname}/api/v1/mining/pool/${slug}" >/dev/null
|
curl -s "https://${hostname}/api/v1/mining/pool/${slug}" >/dev/null
|
||||||
|
curl -s "https://${hostname}/api/v1/mining/pool/${slug}/hashrate" >/dev/null
|
||||||
|
curl -s "https://${hostname}/api/v1/mining/pool/${slug}/blocks" >/dev/null
|
||||||
done
|
done
|
||||||
|
|
||||||
sleep 10
|
sleep 10
|
||||||
|
Loading…
Reference in New Issue
Block a user