Bitcoin Forum

Bitcoin => Mining support => Topic started by: YarkoL on October 09, 2014, 08:27:46 PM



Title: Help with stratum and cpuminer
Post by: YarkoL on October 09, 2014, 08:27:46 PM
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?


Title: Re: Help with stratum and cpuminer
Post by: YarkoL on November 04, 2014, 03:50:53 PM

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