• Forum has been upgraded, all links, images, etc are as they were. Please see Official Announcements for more information

question: How to translate stratum format to getwork format on darkcoin

ritech

New member
this is stratum format


{"id": 1, "method": "mining.subscribe", "params": ["cpuminer/2.3.2"]}

{"params": ["1", "95aae9eddf0bab7c738436fd6ef7f18cd99949e024826d8a000523f100000000", "01000000010000000000000000000000000000000000000000000000000000000000000000ffffffff2703298d02062f503253482f04d770605408", "0d2f7374726174756d506f6f6c2f00000000020084d717000000001976a91482f1000b499df88a6998673122b63269f4b1ef4e88ac00e1f505000000001976a914d75bf11541bbc940ae85a6eb33b812d1d96896d388ac00000000", ["51b1b4014f2de68b024f8c1e0ec4d2eae7162c6d54a67ab277a18a3cca4d044c"], "00000002", "1b0dbcdd", "5460711b", true], "id": null, "method": "mining.notify"}

and old getwork format is (example)

{
"midstate" : "6f9c5e7dbc77443842d37e5fd03974874240e2b7ab24dccb048827eeb6cc2c3f",
"data" : "000000025526a84a86dd506b3f3bc3087b83f82cb0fd244ab9bf1cce00087e43000000001400f17f1cb18d2b0ec41c88d8ea85e350d44650bf3ddfbd78e83ca0e9caa39e5460615e1b0e0c9600000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000080020000",
"hash1" : "00000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000010000",
"target" : "000000000000000000000000000000000000000000000000960c0e0000000000"
}
 
Back
Top