From 5a44d53fd6d8a1f3d7918c44a5edead85b275de2 Mon Sep 17 00:00:00 2001 From: natsoni Date: Fri, 3 Jul 2026 12:26:24 +0200 Subject: [PATCH 1/4] Fix effective fee row on mobile --- .../transaction-details.component.scss | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/frontend/src/app/components/transaction/transaction-details/transaction-details.component.scss b/frontend/src/app/components/transaction/transaction-details/transaction-details.component.scss index 3623c4a31..a9e4435f4 100644 --- a/frontend/src/app/components/transaction/transaction-details/transaction-details.component.scss +++ b/frontend/src/app/components/transaction/transaction-details/transaction-details.component.scss @@ -172,8 +172,16 @@ gap: 0.5rem; flex-wrap: wrap; + @media (max-width: 849.98px) { + justify-content: flex-end; + } + .effective-fee-container { flex: 0 0 auto; + + @media (max-width: 425px) { + align-items: flex-end; + } } } } From 6c1822c8fcc43cdcc3072cb30d4b7defa59c4d17 Mon Sep 17 00:00:00 2001 From: wiz Date: Tue, 14 Jul 2026 17:15:56 +0900 Subject: [PATCH 2/4] ops: Add liquid to warm cache script, clean up SSR stuff --- production/nginx-cache-warmer | 93 +++++++++++++------------------ production/nginx-cache-warmer-ssr | 6 ++ 2 files changed, 45 insertions(+), 54 deletions(-) diff --git a/production/nginx-cache-warmer b/production/nginx-cache-warmer index a24898a30..839356027 100755 --- a/production/nginx-cache-warmer +++ b/production/nginx-cache-warmer @@ -1,44 +1,17 @@ #!/usr/bin/env zsh -delay=0.25 -hostname=$(hostname) -slugs=(`curl -sSL https://${hostname}/api/v1/mining/pools/3y|jq -r -S '(.pools[].slug)'`) - -warmSlurp() -{ - echo "$1" - curl -o /dev/null -s -H 'User-Agent: Googlebot' "$1" -} - -warmUnfurl() -{ - echo "$1" - curl -o /dev/null -s -H 'User-Agent: Twitterbot' "$1" -} +delay=0.5 +hostnameBitcoin=127.0.0.1:82 +hostnameLiquid=127.0.0.1:83 warm() { echo "$1" - curl -o /dev/null -s "$1" + time curl -o /dev/null -s "$1" + sleep $delay # delay between queries to not DoS mariadb + echo } -warmSlurpURLs=( - '/' - '/mining' - '/lightning' - '/graphs' - '/docs' - '/docs/faq' - '/docs/api/rest' - '/about' -) - -warmUnfurlURLs=( - '/' - '/mining' - '/lightning' -) - -warmURLs=( +warmCommonURLs=( '/api/v1/blocks' '/api/v1/statistics/2h' '/api/v1/statistics/24h' @@ -51,6 +24,9 @@ warmURLs=( '/api/v1/statistics/3y' '/api/v1/statistics/4y' '/api/v1/statistics/all' +) + +warmMiningURLs=( '/api/v1/mining/pools/24h' '/api/v1/mining/pools/3d' '/api/v1/mining/pools/1w' @@ -114,6 +90,9 @@ warmURLs=( '/api/v1/mining/difficulty-adjustments/2y' '/api/v1/mining/difficulty-adjustments/3y' '/api/v1/mining/difficulty-adjustments/all' +) + +warmLightningURLs=( '/api/v1/lightning/channels-geo?style=widget' '/api/v1/lightning/channels-geo?style=graph' '/api/v1/lightning/statistics/latest' @@ -153,43 +132,49 @@ warmURLs=( '/api/v1/lightning/nodes/rankings/age' ) -echo "waiting for mempool backend to start..." +echo "[*] Wait 60s for mempool backend to start..." sleep 60 while true do - echo "starting warm cache cycle..." + echo "[*] Starting warm cache cycle..." + date - for url in $warmSlurpURLs + for url in $warmCommonURLs do - warmSlurp "https://${hostname}${url}" - sleep $delay # delay between queries to not DoS unfurler + warm "http://${hostnameBitcoin}${url}" + warm "http://${hostnameBitcoin}/testnet${url}" + warm "http://${hostnameBitcoin}/testnet4${url}" + warm "http://${hostnameBitcoin}/signet${url}" + warm "http://${hostnameLiquid}${url}" + warm "http://${hostnameLiquid}/testnet${url}" done - for url in $warmUnfurlURLs + for url in $warmMiningURLs do - warmUnfurl "https://${hostname}${url}" - sleep $delay # delay between queries to not DoS unfurler + warm "http://${hostnameBitcoin}${url}" + warm "http://${hostnameBitcoin}/testnet${url}" + warm "http://${hostnameBitcoin}/testnet4${url}" + warm "http://${hostnameBitcoin}/signet${url}" done - for url in $warmURLs + for url in $warmLightningURLs do - warm "https://${hostname}${url}" - warm "https://${hostname}/testnet${url}" - warm "https://${hostname}/testnet4${url}" - warm "https://${hostname}/signet${url}" - sleep $delay # delay between queries to not DoS mariadb + warm "http://${hostnameBitcoin}${url}" + warm "http://${hostnameBitcoin}/testnet${url}" + warm "http://${hostnameBitcoin}/signet${url}" done + slugs=(`curl -sSL http://${hostnameBitcoin}/api/v1/mining/pools/3y|jq -r -S '(.pools[].slug)'`) for slug in $slugs do - warm "https://${hostname}/api/v1/mining/pool/${slug}" - sleep $delay # delay between queries to not DoS mariadb - warm "https://${hostname}/api/v1/mining/pool/${slug}/hashrate" - sleep $delay # delay between queries to not DoS mariadb - warm "https://${hostname}/api/v1/mining/pool/${slug}/blocks" - sleep $delay # delay between queries to not DoS mariadb + warm "http://${hostnameBitcoin}/api/v1/mining/pool/${slug}" + warm "http://${hostnameBitcoin}/api/v1/mining/pool/${slug}/hashrate" + warm "http://${hostnameBitcoin}/api/v1/mining/pool/${slug}/blocks" done + date + echo "[*] Completed warm cache cycle" + sleep 1 done diff --git a/production/nginx-cache-warmer-ssr b/production/nginx-cache-warmer-ssr index 29ebc9883..e4d89afc2 100755 --- a/production/nginx-cache-warmer-ssr +++ b/production/nginx-cache-warmer-ssr @@ -58,6 +58,12 @@ warmUnfurl() sipURLs=( '/' '/mining' + '/lightning' + '/graphs' + '/docs' + '/docs/faq' + '/docs/api/rest' + '/about' ) unfurlURLs=( From 5b633d8f4d08c06a5845393725756ff747d51f07 Mon Sep 17 00:00:00 2001 From: wiz Date: Tue, 14 Jul 2026 17:19:06 +0900 Subject: [PATCH 3/4] ops: Add more Liquid URLs to warm cache script --- production/nginx-cache-warmer | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/production/nginx-cache-warmer b/production/nginx-cache-warmer index 839356027..3cb803fbb 100755 --- a/production/nginx-cache-warmer +++ b/production/nginx-cache-warmer @@ -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 From c57d1cd959e9da0b1c891939ab6fb3fd2e7a93d4 Mon Sep 17 00:00:00 2001 From: wiz Date: Tue, 14 Jul 2026 22:58:59 +0900 Subject: [PATCH 4/4] ops: Only warm cache testnet URLs 10% of the time --- production/nginx-cache-warmer | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/production/nginx-cache-warmer b/production/nginx-cache-warmer index 3cb803fbb..c919e38b9 100755 --- a/production/nginx-cache-warmer +++ b/production/nginx-cache-warmer @@ -172,16 +172,22 @@ do for url in $warmMiningURLs do warm "http://${hostnameBitcoin}${url}" - warm "http://${hostnameBitcoin}/testnet${url}" - warm "http://${hostnameBitcoin}/testnet4${url}" - warm "http://${hostnameBitcoin}/signet${url}" + # only warm cache for testnet URLs 10% of the time + if (( RANDOM % 100 < 10 )); then + warm "http://${hostnameBitcoin}/testnet${url}" + warm "http://${hostnameBitcoin}/testnet4${url}" + warm "http://${hostnameBitcoin}/signet${url}" + fi done for url in $warmLightningURLs do warm "http://${hostnameBitcoin}${url}" - warm "http://${hostnameBitcoin}/testnet${url}" - warm "http://${hostnameBitcoin}/signet${url}" + # only warm cache for testnet URLs 10% of the time + if (( RANDOM % 100 < 10 )); then + warm "http://${hostnameBitcoin}/testnet${url}" + warm "http://${hostnameBitcoin}/signet${url}" + fi done for url in $warmLiquidURLs