Author

Topic: How to generate Merkle Root ? (Read 855 times)

full member
Activity: 135
Merit: 100
Zettel-Dolphin
November 03, 2016, 04:51:25 AM
#3
I agree with pepe,

does stratum allow you to query all tx hashes?
If yes, you can then very easily construct a merkle root.

-sf-
member
Activity: 120
Merit: 13
Pepe is NOT a hate symbol
November 03, 2016, 03:17:11 AM
#2
You need to get a list of all transaction hashes that will go into your block.
You also need them in the specific order in which they will be placed.
newbie
Activity: 6
Merit: 0
October 27, 2016, 02:58:31 PM
#1
Hello,

Is there any help/tutorial on how to build the merkle root from stratum data?

The slushpool's stratum protocol manual (https://f.com/help/#!/manual/stratum-protocol)
has an example of a mining job but it does not contain any merkle branches so I don't  really know if I generate the merkle root correctly.

This is the slushpool's mining notification string:
{"params": ["bf", "4d16b6f85af6e2198f44ae2a6de67f78487ae5611b77c6c0440b921e00000000",
"01000000010000000000000000000000000000000000000000000000000000000000000000fffff fff20020862062f503253482f04b8864e5008",
"072f736c7573682f000000000100f2052a010000001976a914d23fcdf86f7e756a64a7a9688ef99 03327048ed988ac00000000", [],
"00000002", "1c2ac4af", "504e86b9", false], "id": null, "method": "mining.notify"}



Thank you
Jump to: