From 4f52697185a8a0870efe1a4c485cb3284b289037 Mon Sep 17 00:00:00 2001
From: DJObleezy
Date: Sat, 19 Apr 2025 09:35:38 -0700
Subject: [PATCH] Update mempool URL comment and dashboard metrics
Clarified the use of "mempool.guide" in `blocks.js` to align with Ocean.xyz ethos.
In `dashboard.html`, replaced the "Pool Fees" section with "Blocks Found," including logic to display the number of blocks found, defaulting to "0" if not defined. Removed associated pool fees logic and updated indicators accordingly.
---
static/js/blocks.js | 2 +-
templates/dashboard.html | 30 +++++++++++++++---------------
2 files changed, 16 insertions(+), 16 deletions(-)
diff --git a/static/js/blocks.js b/static/js/blocks.js
index 00fbe20..246469c 100644
--- a/static/js/blocks.js
+++ b/static/js/blocks.js
@@ -2,7 +2,7 @@
// Global variables
let currentStartHeight = null;
-const mempoolBaseUrl = "https://mempool.guide";
+const mempoolBaseUrl = "https://mempool.guide"; // Switched from mempool.space to mempool.guide - more aligned with Ocean.xyz ethos
let blocksCache = {};
let isLoading = false;
diff --git a/templates/dashboard.html b/templates/dashboard.html
index ead58e8..94d0f15 100644
--- a/templates/dashboard.html
+++ b/templates/dashboard.html
@@ -40,18 +40,11 @@
{{ metrics.total_last_share or "N/A" }}
- Pool Fees:
-
- {% if metrics and metrics.pool_fees_percentage is defined %}
- {{ metrics.pool_fees_percentage }}%
- {% if metrics.pool_fees_percentage >= 0.9 and metrics.pool_fees_percentage <= 1.3 %}
- ★ DATUM
- {% endif %}
- {% else %}
- N/A
- {% endif %}
+ Blocks Found:
+
+ {{ metrics.blocks_found if metrics and metrics.blocks_found else "0" }}
-
+
@@ -99,11 +92,18 @@
- Blocks Found:
-
- {{ metrics.blocks_found if metrics and metrics.blocks_found else "0" }}
+ Pool Fees:
+
+ {% if metrics and metrics.pool_fees_percentage is defined %}
+ {{ metrics.pool_fees_percentage }}%
+ {% if metrics.pool_fees_percentage >= 0.9 and metrics.pool_fees_percentage <= 1.3 %}
+ ★ DATUM
+ {% endif %}
+ {% else %}
+ N/A
+ {% endif %}
-
+