Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14864953
D16586.id49038.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Subscribers
None
D16586.id49038.diff
View Options
diff --git a/apps/ecash-herald/constants/miners.js b/apps/ecash-herald/constants/miners.js
--- a/apps/ecash-herald/constants/miners.js
+++ b/apps/ecash-herald/constants/miners.js
@@ -113,5 +113,12 @@
coinbaseHexFragment: '416e616e6472616a53696e676820506f6f6c', // ascii AnandrajSingh Pool
},
],
+ [
+ '76a91402a7c7b4fdc5047d8789da27ac6c1a659b3edce588ac',
+ {
+ miner: 'nodeStratum',
+ coinbaseHexFragment: '6e6f64655374726174756d', // ascii nodeStratum
+ },
+ ],
],
};
diff --git a/apps/ecash-herald/test/fixtures/miners.js b/apps/ecash-herald/test/fixtures/miners.js
--- a/apps/ecash-herald/test/fixtures/miners.js
+++ b/apps/ecash-herald/test/fixtures/miners.js
@@ -290,4 +290,19 @@
payoutOutputScript: 'not the one so it is parsed from hex',
parsed: 'AnandrajSingh Pool',
},
+ {
+ height: '856227',
+ coinbaseHex:
+ '03a3100d04ab46ae6608fabe6d6d1d595adb5776912c79ed2964f63c8add8b37db9e3d7052af3e2b50497057feb50400000000000000b156db64601400000d2f6e6f64655374726174756d2f',
+ payoutOutputScript:
+ '76a91402a7c7b4fdc5047d8789da27ac6c1a659b3edce588ac',
+ parsed: 'nodeStratum',
+ },
+ {
+ height: '856227',
+ coinbaseHex:
+ '03a3100d04ab46ae6608fabe6d6d1d595adb5776912c79ed2964f63c8add8b37db9e3d7052af3e2b50497057feb50400000000000000b156db64601400000d2f6e6f64655374726174756d2f',
+ payoutOutputScript: 'not the one so it is parsed from hex',
+ parsed: 'nodeStratum',
+ },
];
diff --git a/web/explorer/explorer-server/src/templating/filters.rs b/web/explorer/explorer-server/src/templating/filters.rs
--- a/web/explorer/explorer-server/src/templating/filters.rs
+++ b/web/explorer/explorer-server/src/templating/filters.rs
@@ -132,6 +132,7 @@
"p2p-spb.xyz",
"Cminors-Pools",
"with Om Power",
+ "nodeStratum",
];
for &str_to_match in &self_identified_miners {
@@ -451,6 +452,16 @@
"with Om Power"
);
+ // nodeStratum 856227
+ let nodestratum_coinbase_hex = b"\x03\xa3\x10\r\x04\xabF\xaef\x08\
+ \xfa\xbemm\x1dYZ\xdbWv\x91,y\xed)d\xf6<\x8a\xdd\x8b7\xdb\x9e=\
+ pR\xaf>+PIpW\xfe\xb5\x04\x00\x00\x00\x00\x00\x00\x00\xb1V\xdbd`\
+ \x14\x00\x00\r/nodeStratum/";
+ assert_eq!(
+ render_miner(nodestratum_coinbase_hex).unwrap(),
+ "nodeStratum"
+ );
+
// Unknown miner
// genesis block 0
let unknown_coinbase_hex = b"\x04\xff\xff\x00\x1d\x01\x04\
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, May 20, 23:37 (30 m, 50 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5865625
Default Alt Text
D16586.id49038.diff (2 KB)
Attached To
D16586: [explorer and ecash-herald] Parse new miner nodeStratum
Event Timeline
Log In to Comment