Bitcoin Forum
September 27, 2018, 10:11:48 PM *
News: ♦♦ New info! Bitcoin Core users absolutely must upgrade to previously-announced 0.16.3 [Torrent]. All Bitcoin users should temporarily trust confirmations slightly less. More info.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: How does stratum response look like?  (Read 455 times)
konradp
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?


1538086308
Hero Member
*
Offline Offline

Posts: 1538086308

View Profile Personal Message (Offline)

Ignore
1538086308
Reply with quote  #2

1538086308
Report to moderator
1538086308
Hero Member
*
Offline Offline

Posts: 1538086308

View Profile Personal Message (Offline)

Ignore
1538086308
Reply with quote  #2

1538086308
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1538086308
Hero Member
*
Offline Offline

Posts: 1538086308

View Profile Personal Message (Offline)

Ignore
1538086308
Reply with quote  #2

1538086308
Report to moderator
konradp
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: 515
Merit: 503


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
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:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!