global: add mining related datasets

This commit is contained in:
nym21
2025-09-10 21:57:15 +02:00
parent 9b92c5ce38
commit 72bba06e71
7 changed files with 116 additions and 5 deletions
+8 -2
View File
@@ -39,6 +39,7 @@
* "Bool" |
* "Days" |
* "%mcap" |
* "blocks" |
* "%cmcap" |
* "%cp+l" |
* "%rcap" |
@@ -57,7 +58,6 @@
* "sd" |
* "Epoch" |
* "Height" |
* "Type" |
* "Bytes"
* } Unit
*/
@@ -768,6 +768,9 @@ function createUtils() {
if ((!unit || thoroughUnitCheck) && id === "chain") {
setUnit("block");
}
if ((!unit || thoroughUnitCheck) && id.startsWith("blocks_before")) {
setUnit("blocks");
}
if (
(!unit || thoroughUnitCheck) &&
(id === "emptyaddressdata" || id === "loadedaddressdata")
@@ -835,6 +838,7 @@ function createUtils() {
if (
(!unit || thoroughUnitCheck) &&
(id === "price_drawdown" ||
id === "difficulty_adjustment" ||
id.endsWith("oscillator") ||
id.endsWith("dominance") ||
id.endsWith("returns") ||
@@ -978,7 +982,9 @@ function createUtils() {
}
if (
(!unit || thoroughUnitCheck) &&
(id.includes("days_between") || id.includes("days_since"))
(id.includes("days_between") ||
id.includes("days_since") ||
id.startsWith("days_before"))
) {
setUnit("Days");
}
+13
View File
@@ -3764,6 +3764,19 @@ function createPartialOptions({ env, colors, vecIdToIndexes, pools }) {
key: "difficultyepoch",
name: "Epoch",
}),
{
key: "difficulty_adjustment",
title: "Adjustment",
type: "Baseline",
},
createBaseSeries({
key: "blocks_before_next_difficulty_adjustment",
name: "Before next",
}),
createBaseSeries({
key: "days_before_next_difficulty_adjustment",
name: "Before next",
}),
],
},
{