Skip to content
This repository has been archived by the owner on Mar 6, 2023. It is now read-only.

Add new method "mining.ping" #16

Open
p4u opened this issue May 26, 2014 · 0 comments
Open

Add new method "mining.ping" #16

p4u opened this issue May 26, 2014 · 0 comments

Comments

@p4u
Copy link

p4u commented May 26, 2014

When using multiple pools, it would be useful to add a new ping method for the stratum protocol. So the worker does not need to wait until the timeout or the TCP connection lost event. It can send pings periodically, wait some seconds for the reply and if not change to the second pool.

Client: {"params": [], "id": 4, "method": "ping"}

Server: {"error": null, "id": 4, "result": true}

If the pool is sending new jobs often (every few seconds) this method is not needed, but in case the pool is sending jobs or changing difficulty not so often (depends on the coin, the block generation time, etc.), then this method might increase the performance of many workers by not spending time waiting for a pool timeout.

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

1 participant