diff --git a/backend/src/utils/bitcoin-script.ts b/backend/src/utils/bitcoin-script.ts
index b43b7a72d..f9755fcb4 100644
--- a/backend/src/utils/bitcoin-script.ts
+++ b/backend/src/utils/bitcoin-script.ts
@@ -223,5 +223,5 @@ export function parseDATUMTemplateCreator(coinbaseRaw: string): string[] | null
let tagString = String.fromCharCode(...tags);
tagString = tagString.replace('\x00', '');
- return tagString.split('\x0f');
+ return tagString.split('\x0f').map((name) => name.replace(/[^a-zA-Z0-9 ]/g, ''));
}
\ No newline at end of file
diff --git a/frontend/src/app/components/block/block-preview.component.html b/frontend/src/app/components/block/block-preview.component.html
index b1cafc05e..036ab8399 100644
--- a/frontend/src/app/components/block/block-preview.component.html
+++ b/frontend/src/app/components/block/block-preview.component.html
@@ -53,32 +53,28 @@
Miner |
- 1 && block.extras.pool.minerNames[1] != ''; else centralisedPool">
- {{ block.extras.pool.minerNames[1] }}
-
- on
- ![]()
- {{ block.extras.pool.name}}
-
-
-
-
- {{ block.extras.pool.name }}
-
+ 1 && block.extras.pool.minerNames[1] != ''">
+ @if (block.extras.pool.minerNames[1].length > 16) {
+ {{ block.extras.pool.minerNames[1].slice(0, 15) }}…
+ } @else {
+ {{ block.extras.pool.minerNames[1] }}
+ }
+
+
+ {{ block.extras.pool.name }}
|
- 1 && block?.extras.pool.minerNames[1] != ''; else centralisedPool">
- {{ block?.extras.pool.minerNames[1] }}
-
- on {{ block?.extras.pool.name }}
-
-
-
- {{ block?.extras.pool.name }}
-
+ 1 && block.extras.pool.minerNames[1] != ''">
+ @if (block.extras.pool.minerNames[1].length > 16) {
+ {{ block.extras.pool.minerNames[1].slice(0, 15) }}…
+ } @else {
+ {{ block.extras.pool.minerNames[1] }}
+ }
+
+ {{ block.extras.pool.name }}
|
diff --git a/frontend/src/app/components/block/block.component.html b/frontend/src/app/components/block/block.component.html
index 46900179b..09c3a5d23 100644
--- a/frontend/src/app/components/block/block.component.html
+++ b/frontend/src/app/components/block/block.component.html
@@ -182,16 +182,15 @@
Miner |
- 1 && block.extras.pool.minerNames[1] != ''; else centralisedPool">
- {{ block.extras.pool.minerNames[1] }}
-
- ![]()
- {{ block.extras.pool.name }}
-
-
-
- {{ block.extras.pool.name }}
-
+ 1 && block.extras.pool.minerNames[1] != ''">
+ @if (block.extras.pool.minerNames[1].length > 16) {
+ {{ block.extras.pool.minerNames[1].slice(0, 15) }}…
+ } @else {
+ {{ block.extras.pool.minerNames[1] }}
+ }
+
+
+ {{ block.extras.pool.name }}
|
diff --git a/frontend/src/app/components/block/block.component.scss b/frontend/src/app/components/block/block.component.scss
index 6eae3fe3a..945d61366 100644
--- a/frontend/src/app/components/block/block.component.scss
+++ b/frontend/src/app/components/block/block.component.scss
@@ -81,17 +81,9 @@ h1 {
}
}
-.on-pool-container {
- display: inline;
- flex-direction: row;
-}
-
-.on-pool {
- background-color: var(--bg);
- display: inline-block;
- margin-top: 4px;
- padding: .25em .4em;
- border-radius: .25rem;
+.miner-name {
+ margin-right: 4px;
+ vertical-align: top;
}
.pool-logo {
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 128d18774..a782e9588 100644
--- a/frontend/src/app/components/blockchain-blocks/blockchain-blocks.component.html
+++ b/frontend/src/app/components/blockchain-blocks/blockchain-blocks.component.html
@@ -60,11 +60,11 @@
-
-
+
{{ block.extras.pool.name }}
diff --git a/frontend/src/app/components/blockchain-blocks/blockchain-blocks.component.scss b/frontend/src/app/components/blockchain-blocks/blockchain-blocks.component.scss
index a0111215a..5c2a5ab5a 100644
--- a/frontend/src/app/components/blockchain-blocks/blockchain-blocks.component.scss
+++ b/frontend/src/app/components/blockchain-blocks/blockchain-blocks.component.scss
@@ -187,9 +187,16 @@
.badge {
position: relative;
- top: 15px;
+ top: 19px;
z-index: 101;
color: #FFF;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ max-width: 145px;
+
+ &.miner-name {
+ max-width: 125px;
+ }
}
.pool-logo {
diff --git a/frontend/src/app/components/blockchain-blocks/blockchain-blocks.component.ts b/frontend/src/app/components/blockchain-blocks/blockchain-blocks.component.ts
index 7846b66a2..1a7598079 100644
--- a/frontend/src/app/components/blockchain-blocks/blockchain-blocks.component.ts
+++ b/frontend/src/app/components/blockchain-blocks/blockchain-blocks.component.ts
@@ -281,15 +281,6 @@ export class BlockchainBlocksComponent implements OnInit, OnChanges, OnDestroy {
if (block?.extras) {
block.extras.minFee = this.getMinBlockFee(block);
block.extras.maxFee = this.getMaxBlockFee(block);
- if (block.extras.pool?.minerNames) {
- block.extras.pool.minerNames = block.extras.pool.minerNames.map((name) => {
- name = name.replace(/[^a-zA-Z0-9 ]/g, '');
- if (name.length > 16) {
- return name.slice(0, 16) + '…';
- }
- return name;
- });
- }
}
}
this.blocks.push(block || {
@@ -332,14 +323,6 @@ export class BlockchainBlocksComponent implements OnInit, OnChanges, OnDestroy {
if (block?.extras) {
block.extras.minFee = this.getMinBlockFee(block);
block.extras.maxFee = this.getMaxBlockFee(block);
- if (block.extras.pool?.minerNames) {
- block.extras.pool.minerNames = block.extras.pool.minerNames.map((name) => {
- if (name.length > 16) {
- return name.slice(0, 16) + '…';
- }
- return name;
- });
- }
}
this.blocks[blockIndex] = block;
this.blockStyles[blockIndex] = this.getStyleForBlock(block, blockIndex);
diff --git a/frontend/src/app/components/transaction/transaction.component.html b/frontend/src/app/components/transaction/transaction.component.html
index a4524d529..ec06dd5ad 100644
--- a/frontend/src/app/components/transaction/transaction.component.html
+++ b/frontend/src/app/components/transaction/transaction.component.html
@@ -684,17 +684,15 @@
@if (pool) {
- 1 && pool.minerNames[1] != ''; else centralisedPool">
- {{ pool.minerNames[1] }}
-
- ![]()
- {{ pool.name }}
-
-
-
-
- {{ pool.name }}
-
+ 1 && pool.minerNames[1] != ''">
+ @if (pool.minerNames[1].length > 16) {
+ {{ pool.minerNames[1].slice(0, 15) }}…
+ } @else {
+ {{ pool.minerNames[1] }}
+ }
+
+
+ {{ pool.name }}
|
} @else {
diff --git a/frontend/src/app/components/transaction/transaction.component.scss b/frontend/src/app/components/transaction/transaction.component.scss
index 40b813cae..42325a1b4 100644
--- a/frontend/src/app/components/transaction/transaction.component.scss
+++ b/frontend/src/app/components/transaction/transaction.component.scss
@@ -60,17 +60,9 @@
top: -1px;
}
-.on-pool-container {
- display: inline;
- flex-direction: row;
-}
-
-.on-pool {
- background-color: var(--bg);
- display: inline-block;
- margin-top: 4px;
- padding: .25em .4em;
- border-radius: .25rem;
+.miner-name {
+ margin-right: 4px;
+ vertical-align: top;
}
.pool-logo {
|