Bitcoin Forum
May 24, 2024, 01:13:44 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How does stratum response look like?  (Read 515 times)
konradp (OP)
Full Member
***
Offline Offline

Activity: 129
Merit: 100



View Profile
March 28, 2014, 02:12:35 PM
 #1

Hi,

On this page: http://mining.bitcoin.cz/stratum-mining we can read that the answer to the "subscribe" action should look like this:
{"id": 1, "result": [[["mining.set_difficulty", "b4b6693b72a50c7116db18d6497cac52"], ["mining.notify", "ae6812eb4cd7735a302a8a9dd95cf71f"]], "08000002", 4], "error": null}\n

But when I start cpuminer with https://bitminter.com pool and watch tcp sockets I see something like this:
{"result":[["mining.notify","1"],"0074aa5f",6],"error":null,"id":1}

Why is that?


konradp (OP)
Full Member
***
Offline Offline

Activity: 129
Merit: 100



View Profile
March 31, 2014, 12:55:22 PM
 #2

Anyone?
elbandi
Hero Member
*****
Offline Offline

Activity: 525
Merit: 529


View Profile
March 31, 2014, 03:11:30 PM
 #3

It's a sessionid. if a pool is resumed, cgminer can submit the unsended shares to pool.
konradp (OP)
Full Member
***
Offline Offline

Activity: 129
Merit: 100



View Profile
April 01, 2014, 05:47:35 AM
 #4

OK, but what I mean is that these two formats are different. In one case we have
Code:
 "result": [[[ 
(sub, sub, sub array)
And the second one:
Code:
"result":[[ 
(sub, sub array)
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!