Page MenuHomePhabricator

No OneTemporary

diff --git a/apps/ecash-herald/constants/miners.js b/apps/ecash-herald/constants/miners.js
index 4ca529104..434bcbed2 100644
--- a/apps/ecash-herald/constants/miners.js
+++ b/apps/ecash-herald/constants/miners.js
@@ -1,67 +1,74 @@
// Copyright (c) 2023 The Bitcoin developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
'use strict';
/**
* miners.js
* Constants related to parsing for known miners of ecash blocks
*
* Store as a map keyed by outputScript
*/
module.exports = {
dataType: 'Map',
value: [
[
'76a914f1c075a01882ae0972f95d3a4177c86c852b7d9188ac',
{
miner: 'ViaBTC',
coinbaseHexFragment: '566961425443',
parseableCoinbase: true,
},
],
[
'76a914a24e2b67689c3753983d3b408bc7690d31b1b74d88ac',
{
miner: 'Mining-Dutch',
coinbaseHexFragment: '4d696e696e672d4475746368',
},
],
[
'76a914ce8c8cf69a922a607e8e03e27ec014fbc24882e088ac',
{
miner: 'Hathor-MM',
// While Hathor-MM block coinbase scripts do contain "mm",
// this is judged insufficient to uniquely identify
coinbaseHexFragment: null,
},
],
[
'76a9141b1bbcb888b4440a573427f526cb221f657318cf88ac',
{
miner: 'Zulu Pool',
coinbaseHexFragment: '5a554c55506f6f4c',
},
],
[
'76a914c857e19f313157ead29b6fa0fa9c772a9ec6c06888ac',
{
miner: 'CK Pool',
coinbaseHexFragment: '636b706f6f6c',
},
],
[
'76a91497b4ae75a3bfab8bf10ef17e133efe34a4a13df788ac',
{
miner: 'zpool',
coinbaseHexFragment: '7a706f6f6c2e6361',
},
],
[
'76a914b89b7be97f768291ed94c0409e8dfdbbdeb32ed088ac',
{
miner: 'Molepool',
coinbaseHexFragment: '6d6f6c65706f6f6c2e636f6d', // ascii molepool.com
},
],
+ [
+ '76a914637e48a57a3f3d6184f3aaf68b9e2a77400f372c88ac',
+ {
+ miner: 'CoinMinerz.com',
+ coinbaseHexFragment: '436f696e4d696e65727a2e636f6d', // ascii CoinMinerz.com
+ },
+ ],
],
};
diff --git a/apps/ecash-herald/test/fixtures/miners.js b/apps/ecash-herald/test/fixtures/miners.js
index 0e3559cb0..ca736bb3f 100644
--- a/apps/ecash-herald/test/fixtures/miners.js
+++ b/apps/ecash-herald/test/fixtures/miners.js
@@ -1,168 +1,176 @@
// Copyright (c) 2023 The Bitcoin developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
'use strict';
module.exports = [
{
height: 791160,
coinbaseHex:
'0378120c182f5669614254432f4d696e6564206279203236303738362f103b6fa20ff3648a69acc31ed9b4946c00',
payoutOutputScript:
'76a914f1c075a01882ae0972f95d3a4177c86c852b7d9188ac',
parsed: 'ViaBTC, Mined by 260786',
},
{
height: 791162,
coinbaseHex:
'037a120c1b2f5669614254432f4d696e656420627920616e6d6f6c393934362f10506fba0b63c1be4232055d9432860000',
payoutOutputScript:
'76a914f1c075a01882ae0972f95d3a4177c86c852b7d9188ac',
parsed: 'ViaBTC, Mined by anmol9946',
},
{
height: 791152,
coinbaseHex:
'0370120c192f5669614254432f4d696e6564206279207374616c6365722f10eb6ea10f92ef957d84c8bb6769e22d00',
payoutOutputScript:
'76a914f1c075a01882ae0972f95d3a4177c86c852b7d9188ac',
parsed: 'ViaBTC, Mined by stalcer',
},
{
height: 791169,
coinbaseHex:
'0381120c04498b5a6408fabe6d6d2824fdd18ac6fdbf7196476428cc714e3841f1ff289127197ca59466b3ae739a0001000000000000000000115bba02001401112f4d696e696e672d44757463682f2d3231',
payoutOutputScript:
'76a914a24e2b67689c3753983d3b408bc7690d31b1b74d88ac',
parsed: 'Mining-Dutch',
},
{
height: 791165,
coinbaseHex:
'037d120c04b7895a6408fabe6d6d3552401c3f02d70ca60a4bd927ab08f4bd7412821435244a72d4002d5baf3e52000100000000000000003b4dbeab12001b01112f4d696e696e672d44757463682f2d3231',
payoutOutputScript:
'76a914a24e2b67689c3753983d3b408bc7690d31b1b74d88ac',
parsed: 'Mining-Dutch',
},
{
height: 790644,
coinbaseHex:
'0374100c0402c4546408fabe6d6dd9cb39f3ab01d745d7cf94bb2da744d5238ce6d91f2b495d697719dacbde4122000100000000000000a3b914314cf2000c01112f4d696e696e672d44757463682f2d3234',
payoutOutputScript:
'76a914a24e2b67689c3753983d3b408bc7690d31b1b74d88ac',
parsed: 'Mining-Dutch',
},
{
height: 791154,
coinbaseHex:
'0372120c04ca6f5a640cfabe6d6d0000000000000000000000000000000000000000000000000000000000000000010000000000000017ffe3db2f2981010000000015663561663031393839363731656539633239383034',
payoutOutputScript:
'76a914ce8c8cf69a922a607e8e03e27ec014fbc24882e088ac',
parsed: 'Hathor-MM',
},
{
height: 790242,
coinbaseHex:
'03e20e0c04cdc250640cfabe6d6d00000000000000000000000000000000000000000000000000000000000000000100000000000000780131c9f83700000000000015303637373062323039393135643332643630303333',
payoutOutputScript:
'76a914ce8c8cf69a922a607e8e03e27ec014fbc24882e088ac',
parsed: 'Hathor-MM',
},
{
height: 790837,
coinbaseHex:
'0335110c0408fa56640cfabe6d6d000000000000000000000000000000000000000000000000000000000000000001000000000000005ffff258d57091000000000015653364396135343132373039306165353131333437',
payoutOutputScript:
'76a914ce8c8cf69a922a607e8e03e27ec014fbc24882e088ac',
parsed: 'Hathor-MM',
},
{
height: 785677,
coinbaseHex:
'030dfd0b48617468a881a54b5fbc28b27eb3ed59fc4924a3b991033fee7a78b919170a92d9b7beaf5a554c55506f6f4c2d584543000011d8e9bb1b00',
payoutOutputScript:
'76a9141b1bbcb888b4440a573427f526cb221f657318cf88ac',
parsed: 'Zulu Pool',
},
{
height: 790413,
coinbaseHex:
'038d0f0c48617468606e02e2feb6112decb0dbe728053841e8e16bcd643fc0cb4389e7e1a318bb735a554c55506f6f4c2d58454300002714214b0598',
payoutOutputScript:
'76a9141b1bbcb888b4440a573427f526cb221f657318cf88ac',
parsed: 'Zulu Pool',
},
{
height: 789691,
coinbaseHex:
'03bb0c0c48617468bb1017e3800bb814cc6912cdaa37488fd50a70da9e19b09a7e271bde7417d42d5a554c55506f6f4c2d5845430000171fcc948505',
payoutOutputScript:
'76a9141b1bbcb888b4440a573427f526cb221f657318cf88ac',
parsed: 'Zulu Pool',
},
{
// ck pool but different address from IceBerg
height: 788631,
parsed: 'CK Pool',
coinbaseHex:
'0397080c04181678a1046498416404bb67ca0d0c3692416477630100000000000a636b706f6f6c',
payoutOutputScript:
'76a914c857e19f313157ead29b6fa0fa9c772a9ec6c06888ac',
},
{
height: 791069,
parsed: 'IceBerg',
coinbaseHex:
'031d120c041821710c04556e5964043c958a2e0c4a794764d2ea1400000000000a636b706f6f6c122f6d696e656420627920496365426572672f',
payoutOutputScript:
'76a914c857e19f313157ead29b6fa0fa9c772a9ec6c06888ac',
},
{
height: 788164,
coinbaseHex:
'03c4060c04181750ed0429773d6404180b99200c20493a6402911a00000000000a636b706f6f6c122f6d696e656420627920496365426572672f',
payoutOutputScript:
'76a914c857e19f313157ead29b6fa0fa9c772a9ec6c06888ac',
parsed: 'IceBerg',
},
{
height: 790863,
coinbaseHex:
'034f110c04602a5764084200079077422b017a706f6f6c2e636100fabe6d6da821294426652ebd8cff8df5e02ffcbbdc1b1d9e9022832acf4d071e9bfa2d952000000000000000',
payoutOutputScript:
'76a91497b4ae75a3bfab8bf10ef17e133efe34a4a13df788ac',
parsed: 'zpool',
},
{
height: '0',
coinbaseHex:
'04ffff001d0104455468652054696d65732030332f4a616e2f32303039204368616e63656c6c6f72206f6e206272696e6b206f66207365636f6e64206261696c6f757420666f722062616e6b73',
payoutOutputScript:
'4104678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef38c4f35504e51ec112de5c384df7ba0b8d578a4c702b6bf11d5fac',
parsed: 'unknown',
},
// Molepool.com
{
height: '796646',
coinbaseHex:
'03e6270c047d258c6400189620e6fee4e2170e2f6d6f6c65706f6f6c2e636f6d2f',
payoutOutputScript:
'76a914b89b7be97f768291ed94c0409e8dfdbbdeb32ed088ac',
parsed: 'Molepool',
},
{
height: '796654',
coinbaseHex:
'03ee270c04ef3b8c64006a6b7b05ab3df6000e2f6d6f6c65706f6f6c2e636f6d2f',
payoutOutputScript:
'76a914b89b7be97f768291ed94c0409e8dfdbbdeb32ed088ac',
parsed: 'Molepool',
},
{
height: '796655',
coinbaseHex:
'03ef270c04df408c6400157575e61ef6b9010e2f6d6f6c65706f6f6c2e636f6d2f',
payoutOutputScript:
'76a914b89b7be97f768291ed94c0409e8dfdbbdeb32ed088ac',
parsed: 'Molepool',
},
+ {
+ height: '787515',
+ coinbaseHex:
+ '033b040c04929a37640862c9c313191b1e00102f436f696e4d696e65727a2e636f6d2f',
+ payoutOutputScript:
+ '76a914637e48a57a3f3d6184f3aaf68b9e2a77400f372c88ac',
+ parsed: 'CoinMinerz.com',
+ },
];

File Metadata

Mime Type
text/x-diff
Expires
Mon, Nov 25, 07:57 (1 d, 15 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4584205
Default Alt Text
(9 KB)

Event Timeline