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

Protocol changes for different K and N parameters #4

Open
martin-key opened this issue May 21, 2018 · 1 comment
Open

Protocol changes for different K and N parameters #4

martin-key opened this issue May 21, 2018 · 1 comment

Comments

@martin-key
Copy link

martin-key commented May 21, 2018

Hello!
As some of the Equihash PoW based chains are going to change K and N parameters I propose the following change on the stratum protocol:

{"id": 1, "method": "mining.subscribe", "params": ["CONNECT_HOST", CONNECT_PORT, "MINER_USER_AGENT", "SESSION_ID"]}\n
{"id": 1, "result": ["SESSION_ID", "NONCE_1", "K", "N"], "error": null}\n

K and N parameters to be provided in the result of the subscription to the pool. In order to make it compatible with older software these parameters shall be optional. If they are not present the mining software shall consider them as the default 9/200 values.

@h4x3rotab
Copy link

I'd like to put N before K:

{"id": 1, "method": "mining.subscribe", "params": ["CONNECT_HOST", CONNECT_PORT, "MINER_USER_AGENT", "SESSION_ID"]}\n
{"id": 1, "result": ["SESSION_ID", "NONCE_1", "N", "K"], "error": null}\n

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

2 participants