Closed jsarenik closed 2 years ago
Works for me with following patch:
diff --git a/app/utils.js b/app/utils.js
index 31e4d6f..4ce4dbf 100644
--- a/app/utils.js
+++ b/app/utils.js
@@ -514,7 +514,7 @@ function identifyMiner(coinbaseTx, blockHeight) {
}
}
- if (miningPoolsConfig.block_heights) {
+ if (global.activeBlockchain == "main" && miningPoolsConfig.block_heights) {
for (var minerName in miningPoolsConfig.block_heights) {
var minerInfo = miningPoolsConfig.block_heights[minerName];
minerInfo.name = minerName;
@janoside What do you think about this patch? ^^ Shall I make a PR of it?
The explorers already running with the change (and a few unrelated others) are:
Describe the bug
An explorer for Signet is showing Patoshi as the miner just because of the known block height. See https://signet.bitcoinexplorer.org/block-height/3
Such miner identifications could be rather network-specific.
Environment (please complete the following information):
See the Dashboard at https://ex.plebnet.bublina.eu.org/admin/dashboard for any details.
Configuration file content
Please include the content from the following files. BE SURE TO MODIFY YOUR CREDENTIALS BEFORE SUBMITTING!!!
$WORKING_DIR/.env
or~/.config/btc-rpc-explorer.env
)To Reproduce
Steps to reproduce the behavior: