Author

Topic: cryptonight stratum specs? (Read 580 times)

hero member
Activity: 700
Merit: 500
February 03, 2017, 06:43:53 AM
#1
Hi,

im currently writing a small program to check stratum availability and authorization status and it works for some algos i have tested at nicehash, even ssl/tls works fine

only cryptonight doesnt seem to work

i have read that the cryptonight "stratum" is stratum like and i have seen that there is a "login" param instead of "method" where you just seem to skip the subscribe part and go straight to "authorize"

im getting the following responses:

nicehash plain socket: connected and immediately closed after sending the req
nicehash ssl socket: connected and immediately closed after sending the req

miningpoolhub plain socket: connected and mostly timeout after sending req, sometimes it works and i get a job
miningpoolhub ssl socket: connected and mostly timeout after sending req, sometimes it works and i get a job

req im sending: req = '{"id":2, "jsonrpc":"2.0", "login":"'+worker+'", "pass": "'+pass+'", "agent": "stratumTest"}';

(note: \n gets appended afterwards)


what am i doing wrong here?


edit: ok nevermind, found the solution in the cpuminer-opt sourcecode:

req = '{"id":2, "jsonrpc":"2.0", "method":"login", "params": {"login":"'+worker+'", "pass": "'+pass+'", "agent": "stratumTest"}}';
Jump to: