Skip to content

Commit

Permalink
-increased visibility for miner "notes" (Patoshi disclaimer)
Browse files Browse the repository at this point in the history
-updated changelog
  • Loading branch information
janoside committed Nov 8, 2023
1 parent 9f3c2de commit 4710ef5
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
##### v3.5.0
###### Unreleased

* Tweak display of miner "notes" (disclaimer for Patoshi)
* Updated miner IDs (including removal of 3 probably false positives from the "Patoshi" list)
* Updated dependencies


##### v3.4.0
###### 2023-06-14

Expand Down
5 changes: 4 additions & 1 deletion views/block.pug
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,10 @@ block content
+copyTextButton(result.getblock.miner.name)

else if (result.getblock.miner.identifiedBy)
span.badge.bg-primary(data-bs-toggle="tooltip", data-bs-html="true", title=`Identified by: ${result.getblock.miner.identifiedBy}${result.getblock.miner.note ? ("<br/><br/>" + result.getblock.miner.note) : ""}`) #{result.getblock.miner.name}
span.badge.bg-primary(data-bs-toggle="tooltip", data-bs-html="true", title=`Identified by: ${result.getblock.miner.identifiedBy}`) #{result.getblock.miner.name}

if (result.getblock.miner.note)
i.bi-asterisk.ms-2(data-bs-toggle="tooltip", title=result.getblock.miner.note)

else
small.badge.bg-primary #{result.getblock.miner.name}
Expand Down
10 changes: 8 additions & 2 deletions views/includes/blocks-list.pug
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,16 @@

else
.d-inline.d-sm-none
span.badge.bg-primary(data-bs-toggle="tooltip", data-bs-html="true", title=`Identified by: ${block.miner.identifiedBy}${block.miner.note ? ("<br/><br/>" + block.miner.note) : ""}`) #{utils.ellipsize(block.miner.name, 12)}
span.badge.bg-primary(data-bs-toggle="tooltip", data-bs-html="true", title=`Identified by: ${block.miner.identifiedBy}`) #{utils.ellipsize(block.miner.name, 12)}

if (block.miner.note)
i.bi-asterisk.ms-2(data-bs-toggle="tooltip", title=block.miner.note)

.d-none.d-sm-inline
span.badge.bg-primary(data-bs-toggle="tooltip", data-bs-html="true", title=`Identified by: ${block.miner.identifiedBy}${block.miner.note ? ("<br/><br/>" + block.miner.note) : ""}`) #{utils.ellipsize(block.miner.name, 14)}
span.badge.bg-primary(data-bs-toggle="tooltip", data-bs-html="true", title=`Identified by: ${block.miner.identifiedBy}`) #{utils.ellipsize(block.miner.name, 14)}

if (block.miner.note)
i.bi-asterisk.ms-2(data-bs-toggle="tooltip", title=block.miner.note)

else if (block.height < global.pruneHeight)
span(title="This data is unavailable due to blockchain pruning", data-bs-toggle="tooltip")
Expand Down

0 comments on commit 4710ef5

Please sign in to comment.