From c949fee49f9e61188b22f5153b36782de47327c4 Mon Sep 17 00:00:00 2001
From: nymkappa <1612910616@pm.me>
Date: Tue, 21 Feb 2023 17:25:39 +0900
Subject: [PATCH 1/4] Fix liquid infinite scrolling
---
.../blockchain-blocks/blockchain-blocks.component.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/frontend/src/app/components/blockchain-blocks/blockchain-blocks.component.html b/frontend/src/app/components/blockchain-blocks/blockchain-blocks.component.html
index 17c5709fd..d943c7ef5 100644
--- a/frontend/src/app/components/blockchain-blocks/blockchain-blocks.component.html
+++ b/frontend/src/app/components/blockchain-blocks/blockchain-blocks.component.html
@@ -14,7 +14,7 @@
}}
-
+
~{{ block?.extras?.medianFee | number:feeRounding }} sat/vB
From de117e30f2034a77a0c7b926824410b95e5f5dc0 Mon Sep 17 00:00:00 2001
From: nymkappa <1612910616@pm.me>
Date: Tue, 21 Feb 2023 17:51:46 +0900
Subject: [PATCH 2/4] Use mempool chart color palette on hashrate history
---
.../hashrates-chart-pools/hashrate-chart-pools.component.ts | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/frontend/src/app/components/hashrates-chart-pools/hashrate-chart-pools.component.ts b/frontend/src/app/components/hashrates-chart-pools/hashrate-chart-pools.component.ts
index ed3683e9b..df7780fee 100644
--- a/frontend/src/app/components/hashrates-chart-pools/hashrate-chart-pools.component.ts
+++ b/frontend/src/app/components/hashrates-chart-pools/hashrate-chart-pools.component.ts
@@ -5,7 +5,7 @@ import { delay, map, retryWhen, share, startWith, switchMap, tap } from 'rxjs/op
import { ApiService } from '../../services/api.service';
import { SeoService } from '../../services/seo.service';
import { UntypedFormBuilder, UntypedFormGroup } from '@angular/forms';
-import { poolsColor } from '../../app.constants';
+import { chartColors, poolsColor } from '../../app.constants';
import { StorageService } from '../../services/storage.service';
import { MiningService } from '../../services/mining.service';
import { download } from '../../shared/graphs.utils';
@@ -173,6 +173,7 @@ export class HashrateChartPoolsComponent implements OnInit {
this.chartOptions = {
title: title,
animation: false,
+ color: chartColors,
grid: {
right: this.right,
left: this.left,
From b2162130d9354d2125677f2b76e9955b5fb29c1d Mon Sep 17 00:00:00 2001
From: nymkappa <1612910616@pm.me>
Date: Tue, 21 Feb 2023 18:09:41 +0900
Subject: [PATCH 3/4] Keep block alignment if fee/fee-range is missing
---
.../blockchain-blocks.component.html | 18 ++++++++++++------
1 file changed, 12 insertions(+), 6 deletions(-)
diff --git a/frontend/src/app/components/blockchain-blocks/blockchain-blocks.component.html b/frontend/src/app/components/blockchain-blocks/blockchain-blocks.component.html
index d943c7ef5..400016d02 100644
--- a/frontend/src/app/components/blockchain-blocks/blockchain-blocks.component.html
+++ b/frontend/src/app/components/blockchain-blocks/blockchain-blocks.component.html
@@ -14,20 +14,26 @@
}}
-
+
~{{ block?.extras?.medianFee | number:feeRounding }} sat/vB
+
+
+
+
+
+ *ngIf="block?.extras?.feeRange; else emptyfeespan">
{{ block?.extras?.feeRange?.[1] | number:feeRounding }} - {{
block?.extras?.feeRange[block?.extras?.feeRange?.length - 1] | number:feeRounding }} sat/vB
-
-
-
+
+
+
+
+
From 952e540d65e7c3a96ca3f323d0b703ee074aa43a Mon Sep 17 00:00:00 2001
From: wiz
Date: Tue, 21 Feb 2023 18:41:12 +0900
Subject: [PATCH 4/4] ops: Add 250ms delay between warm cache requests
---
production/nginx-cache-warmer | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/production/nginx-cache-warmer b/production/nginx-cache-warmer
index 27d1e3a8f..db025a137 100755
--- a/production/nginx-cache-warmer
+++ b/production/nginx-cache-warmer
@@ -120,14 +120,16 @@ do for url in / \
do
warm "https://${hostname}${url}"
+ sleep 0.25 # wait 250ms between queries to not DoS mariadb
done
for slug in $slugs
do
warm "https://${hostname}/api/v1/mining/pool/${slug}"
+ sleep 0.25 # wait 250ms between queries to not DoS mariadb
warm "https://${hostname}/api/v1/mining/pool/${slug}/hashrate"
+ sleep 0.25 # wait 250ms between queries to not DoS mariadb
warm "https://${hostname}/api/v1/mining/pool/${slug}/blocks"
+ sleep 0.25 # wait 250ms between queries to not DoS mariadb
done
-
- sleep 10
done