0

I write miner on C++ for litecoin. I already have code for getwork protocol, now i need to implement strartum protocol and here i have some problems. When i subscribe and autorize worker thru stratum, i start receive notifications with mining jobs. Some thing like this

{"params": ["bf", "4d16b6f85af6e2198f44ae2a6de67f78487ae5611b77c6c0440b921e00000000",
"01000000010000000000000000000000000000000000000000000000000000000000000000ffffffff20020862062f503253482f04b8864e5008",
"072f736c7573682f000000000100f2052a010000001976a914d23fcdf86f7e756a64a7a9688ef9903327048ed988ac00000000", [],
"00000002", "1c2ac4af", "504e86b9", false], "id": null, "method": "mining.notify"}

where this "data" and "target" similar to http getwork protocol?

  • mining.bitcoin.cz/stratum-mining – kaoD Jan 14 '14 at 20:31
  • I read this specification, for litecoin all the same? – lebron2323 Jan 14 '14 at 20:33
  • Yes. Litecoin has few differences from bitcoin. – kaoD Jan 14 '14 at 20:42
  • This differences i understand, but i wrote miner, and i cant undertand, what part of this data i need use for calculating scrypt and what part uses as target for checking valid hash? – lebron2323 Jan 14 '14 at 20:53
  • Again, read the website, the part where it says "I'll descibe every field of the notification in the particular order" where he describes every field of the notification in the particular order. – kaoD Jan 14 '14 at 20:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.