Bitcoin Forum
May 08, 2024, 12:20:08 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: cryptonight stratum specs?  (Read 562 times)
felixbrucker (OP)
Hero Member
*****
Offline Offline

Activity: 700
Merit: 500


View Profile WWW
February 03, 2017, 11:43:53 AM
Last edit: February 03, 2017, 12:15:50 PM by felixbrucker
 #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"}}';
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!