Skip to content
This repository has been archived by the owner on Jan 9, 2021. It is now read-only.

Stratum spec violation #3

Closed
sammy007 opened this issue Oct 22, 2016 · 2 comments
Closed

Stratum spec violation #3

sammy007 opened this issue Oct 22, 2016 · 2 comments

Comments

@sammy007
Copy link

What is an idea behind adding mining.extranonce.subscribe?

https://github.com/str4d/zips/blob/77-zip-stratum/drafts/str4d-stratum/draft1.rst

There is big work done on specification.

Protocol Flow

Client sends mining.subscribe to set up the session.
Server replies with the session information.
Client sends mining.authorize for their worker(s).
Server replies with the result of authorization.
Server sends mining.set_target.
Server sends mining.notify with a new job.
Client mines on that job.
Client sends mining.submit for each solution found.
Server replies with whether the solution was accepted.
Server sends mining.notify again when there is a new job.

@nicehashdev
Copy link

We added mining.extranonce.subscribe as an extension for compatibility with our service. Without this extension miner would still work but would get disconnected every time it is swapped to another order. We created this extension for original bitcoin stratum protocol long time ago and have been using it for 2 years. Most of miner software including ASIC supports it. With extension miners do not get disconnect thus perform better.

Since this is a miner for NiceHash, I am not fully sure where exactly is the problem?

@sammy007
Copy link
Author

FYI there is uint256 space for nonce I wonder after how many years of mining without disconnects miner will be swapped to another order.

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

No branches or pull requests

2 participants