Bitcoin Forum
April 25, 2024, 04:42:16 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Help with stratum and cpuminer  (Read 2143 times)
YarkoL (OP)
Legendary
*
Offline Offline

Activity: 996
Merit: 1012


View Profile
October 09, 2014, 08:27:46 PM
 #1

I'm not generating any shares and
I'm trying to figure out which one is to blame, the miner
or stratum.

Quote
niklas@panarchia:~/qt/cpuminer/cpuminer-2.4$ ./minerd -a sha256d  --url=stratum+tcp://myprivpool:3333 -O yarko.worker1:XXXXX -t 2 -D -P
[2014-10-09 23:06:27] 2 miner threads started, using 'sha256d' algorithm.
[2014-10-09 23:06:27] Starting Stratum on stratum+tcp://myprivpool:3333
* About to connect() to  xxx.xxx.xxx.xxx port 3333 (#0)
*   Trying xxx.xxx.xxx.xxx... * TCP_NODELAY set
[2014-10-09 23:06:27] Binding thread 1 to cpu 1
[2014-10-09 23:06:27] Binding thread 0 to cpu 0
* connected
* Connection #0 to host myprivpool left intact
[2014-10-09 23:06:27] > {"id": 1, "method": "mining.subscribe", "params": ["cpuminer/2.4"]}
[2014-10-09 23:06:28] < {"error": null, "id": 1, "result": [["mining.notify", "ae6812eb4cd7735a302a8a9dd95cf71f"], "f8000004", 4]}
[2014-10-09 23:06:28] Failed to get Stratum session id
[2014-10-09 23:06:28] > {"id": 2, "method": "mining.authorize", "params": ["yarko.worker1", XXXXX]}
[2014-10-09 23:06:28] < {"params": [1], "id": null, "method": "mining.set_difficulty"}
[2014-10-09 23:06:28] Stratum difficulty set to 1
[2014-10-09 23:06:28] < {"params": ["c5", "5cb0a64a5cfae5ee32335daf431fbeb2048280f2e31bdabbbc5cd545000048fa", "01000000010000000000000000000000000000000000000000000000000000000000000000fffff fff25011a062f503253482f04acea365408", "0d2f7374726174756d506f6f6c2f000000000100000000000000001976a91457e4c0e8c95d04b06 a4f14a26e14222d61fca55388ac00000000", [], "00000002", "207fffff", "5436eaac", true], "id": null, "method": "mining.notify"}
[2014-10-09 23:06:28] < {"error": null, "id": 2, "result": true}
[2014-10-09 23:06:28] DEBUG: job_id='c5' extranonce2=00000000 ntime=5436eaac
[2014-10-09 23:06:28] Stratum requested work restart
[2014-10-09 23:06:30] thread 0: 2097152 hashes, 1191 khash/s
[2014-10-09 23:06:31] thread 1: 2097152 hashes, 903.56 khash/s

It then recycles like this, the "params" get send like above and new job_ids.
Hashing happens but not shares.
Can't be that difficulty is too high, because I can mine blocks with wallet just fine.

Any ideas? What can I do to get Stratum session id?

“God does not play dice"
1714063336
Hero Member
*
Offline Offline

Posts: 1714063336

View Profile Personal Message (Offline)

Ignore
1714063336
Reply with quote  #2

1714063336
Report to moderator
1714063336
Hero Member
*
Offline Offline

Posts: 1714063336

View Profile Personal Message (Offline)

Ignore
1714063336
Reply with quote  #2

1714063336
Report to moderator
Be very wary of relying on JavaScript for security on crypto sites. The site can change the JavaScript at any time unless you take unusual precautions, and browsers are not generally known for their airtight security.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714063336
Hero Member
*
Offline Offline

Posts: 1714063336

View Profile Personal Message (Offline)

Ignore
1714063336
Reply with quote  #2

1714063336
Report to moderator
1714063336
Hero Member
*
Offline Offline

Posts: 1714063336

View Profile Personal Message (Offline)

Ignore
1714063336
Reply with quote  #2

1714063336
Report to moderator
1714063336
Hero Member
*
Offline Offline

Posts: 1714063336

View Profile Personal Message (Offline)

Ignore
1714063336
Reply with quote  #2

1714063336
Report to moderator
YarkoL (OP)
Legendary
*
Offline Offline

Activity: 996
Merit: 1012


View Profile
November 04, 2014, 03:50:53 PM
 #2


Totally forgot about this. MPOS issue. I "fixed" it by switching
over to NOMP.

“God does not play dice"
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!