What should a stratum server do with "mining.submit"?

0

I write some stratum server, for mining in the pool. The answer goes from the client to my server:

{"method": "mining.submit", "params": ["g", "06a8", "01", "1d025f83", "c03f38ac"], "id":4}

What should I do with this in my stratum server? What next do I need to do with this data? (I write in Plain C)

undefined

Posted 2017-06-02T09:57:41.263

Reputation: 3

Answers

0

  1. Read the documentation please: https://en.bitcoin.it/wiki/Stratum_mining_protocol#mining.submit

A quote from it:

mining.submit

mining.submit("username", "job id", "ExtraNonce2", "nTime", "nOnce")

Miners submit shares using the method "mining.submit". Client submissions contain:

Worker Name.
Job ID.
ExtraNonce2.
nTime.
nOnce.

Server response is result: true for accepted, false for rejected (or you may get an error with more details).

  1. You write:

    What next do I need to do with this data?

You could check the poolserver for example code: https://github.com/GOSTSec/poolserver/blob/master/src/server/poolserver/Stratum/Client.h#L82

Eugene Gr. Philippov

Posted 2017-06-02T09:57:41.263

Reputation: 118

I know about mining.submit("username", "job id", "ExtraNonce2", "nTime", "nOnce") Thanks for example. I watch it later.undefined 2017-06-05T21:15:16.733