node-stratum icon indicating copy to clipboard operation
node-stratum copied to clipboard

Enhancement: stratum.Client should support client.* calls to client from server

Open jla415 opened this issue 6 years ago • 1 comments

example from server to stratum.Client:

{"id": 1289739, "method": "client.get_version", "params": null}.

Currently the library just throws an exception here:

https://github.com/pocesar/node-stratum/blob/c4decc5be6c66173eac7a5ce76de576c9e9a184c/src/client.ts#L151

see: https://en.bitcoin.it/wiki/Stratum_mining_protocol#Methods_.28server_to_client.29

Would be nice to be able to handle and respond to various client.* requests from the server...

jla415 avatar Dec 16 '17 01:12 jla415

yes, I'm going to cover the new protocol changes, the initial version was using slushpool's in 2013

pocesar avatar Dec 16 '17 13:12 pocesar