Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EthereumStratum implementation #6

Open
Rom1kz opened this issue Apr 30, 2018 · 1 comment
Open

EthereumStratum implementation #6

Rom1kz opened this issue Apr 30, 2018 · 1 comment

Comments

@Rom1kz
Copy link

Rom1kz commented Apr 30, 2018

Hi, i'm comining.io pool owner
today i've implemented your own EthereumStratum protocol to eliminate possibility of work duplicates

ethminer and claymore are working just fine with my protocol implementation, but nicehash don't

here is trace:

channel 2 activated channel 2 stratum data in channel 2 activated
channel 2 stratum data in '{"id":1,"method":"mining.subscribe","params":["NiceHash/1.0.0","EthereumStratum/1.0.0"]}'
channel 2 subscribed
channel 2 allocated extranonce '0001'
stratum data out: {"id":1,"result":[["mining.notify","bae84e2dc41c4c2a99d0139c074351b2","EthereumStratum/1.0.0"],"0001"],"error":null}
channel 2 stratum data in '{"id":2,"method":"mining.authorize","params":["AGQZgM6jtuYmVxNenWabGF5.nicehash","x"]}'
channel 2 trying login 'AGQZgM6jtuYmVxNenWabGF5' worker 'nicehash' with stratum protocol
channel 2 worker 6781 'nicehash' account 'AGQZgM6jtuYmVxNenWabGF5' logged
stratum data out: {"id":2,"result":true,"error":null}
stratum data out: { "id": null, "method": "mining.set_difficulty", "params": [ 1.0 ]}
stratum data out: {"id": null, "method": "mining.notify", "params": [ "bf0488aa", "5197b2a3898b31d4d8afb33e2216b2ef6e166b09122e514323701e9af3b09643", "dabb9d9a88f2b515e9728559ced5751bd531ba2bf17e7f3745322714bd4be68d", true ]}

two hashes i sent in mining.notify (seed and pow-hash) are taken from eth_getWork blockchain request

just after start nicehash order goes to DEAD status
and i can't understand why work my pool sent is invalid

i've made implementation corresponding to this article https://github.com/nicehash/Specifications/blob/master/EthereumStratum_NiceHash_v1.0.0.txt

can u plz explain where i'm wrong ?

@Rom1kz
Copy link
Author

Rom1kz commented Apr 30, 2018

the problem is solved
mistake was on the pool side

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant