Bitcoin Forum

Alternate cryptocurrencies => Mining (Altcoins) => Topic started by: felixbrucker on February 03, 2017, 11:43:53 AM



Title: cryptonight stratum specs?
Post by: felixbrucker on February 03, 2017, 11:43:53 AM
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"}}';