mirror of
https://github.com/mempool/mempool.git
synced 2026-08-13 12:33:11 +02:00
ops: Add more Liquid URLs to warm cache script
This commit is contained in:
parent
6c1822c8fc
commit
5b633d8f4d
1 changed files with 25 additions and 0 deletions
|
|
@ -132,6 +132,25 @@ warmLightningURLs=(
|
|||
'/api/v1/lightning/nodes/rankings/age'
|
||||
)
|
||||
|
||||
warmLiquidURLs=(
|
||||
'/api/v1/assets/icons'
|
||||
'/api/v1/assets/featured'
|
||||
'/api/v1/liquid/pegs'
|
||||
'/api/v1/liquid/pegs/month'
|
||||
'/api/v1/liquid/pegs/volume'
|
||||
'/api/v1/liquid/pegs/count'
|
||||
'/api/v1/liquid/reserves'
|
||||
'/api/v1/liquid/reserves/month'
|
||||
'/api/v1/liquid/reserves/addresses'
|
||||
'/api/v1/liquid/reserves/addresses/total'
|
||||
'/api/v1/liquid/reserves/utxos'
|
||||
'/api/v1/liquid/reserves/utxos/total'
|
||||
'/api/v1/liquid/reserves/utxos/expired'
|
||||
'/api/v1/liquid/reserves/utxos/emergency-spent'
|
||||
'/api/v1/liquid/reserves/utxos/emergency-spent/stats'
|
||||
'/api/v1/liquid/reserves/status'
|
||||
)
|
||||
|
||||
echo "[*] Wait 60s for mempool backend to start..."
|
||||
sleep 60
|
||||
|
||||
|
|
@ -165,6 +184,12 @@ do
|
|||
warm "http://${hostnameBitcoin}/signet${url}"
|
||||
done
|
||||
|
||||
for url in $warmLiquidURLs
|
||||
do
|
||||
warm "http://${hostnameLiquid}${url}"
|
||||
warm "http://${hostnameLiquid}/testnet${url}"
|
||||
done
|
||||
|
||||
slugs=(`curl -sSL http://${hostnameBitcoin}/api/v1/mining/pools/3y|jq -r -S '(.pools[].slug)'`)
|
||||
for slug in $slugs
|
||||
do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue