Stratehm / stratum-proxy

Java implementation of a stratum->stratum/HTTPGetwork proxy with a Web GUI and some pool switching strategies (PriorityFailover, WeightedRoundRobin). Simple to install and configure.
GNU General Public License v3.0
198 stars 118 forks source link

cgminer 4.9.1+ set 0 difficulty #51

Closed ghost closed 9 years ago

ghost commented 9 years ago

When trying connect cgminer 4.9.1+ (kanoi) to proxy got message like Pool 0 set difficulty 0 as a result all hashpower rejected by pool. proxy pointing to antpool or bitcoindigger - same results. when i using slush0 proxy - all working fine on both pools.

Stratehm commented 9 years ago

Which algorithm are you mining on (Scrypt, SHA-256, X11,...) ?

ghost commented 9 years ago

sha256 (bitcoin)

Stratehm commented 9 years ago

Do you have the same problem with other versions of cgminer ? Could you post your proxy configuration ?

ghost commented 9 years ago

no. cgminer/3.9.0 working fine --pool-append-worker-names false true true true --set-extranonce-subscribe true false false false --log-level OFF --pool-connection-retry-delay 500 --no-midstate

Stratehm commented 9 years ago

I will need the log file with a DEBUG loglevel. Thanks.

ghost commented 9 years ago

I just prepare it. You can download log at http://wikisend.com/download/467066/debug.log.gz TTL 7 days!

Stratehm commented 9 years ago

I do not know what is the problem. The proxy sends correctly the difficulty to the miner. For example: 2015-06-06 03:54:22,819 DEBUG [/xxxx:56588-Thread]:strat.mining.stratum.proxy.network.StratumConnection - /xxxx:56588. Send notification: {"id": null, "method": "mining.set_difficulty", "params": [1024.0]}

But indeed, your miner sends low difficulty shares to the proxy which are rejected by the pool. I do not see what I could do. Have you tryed to connect your miner directly on a pool ? If it works, could you send me a packet capture of the traffic between your miner and the pool (with tcpdump or wireshark) to look at the differences when the proxy is involved ?

ghost commented 9 years ago

Hi. I'm confused. While i recording tcpdump from pool, after about 3minutes i see 'Pool 3 set difficulty 0' . Now, i think cgminer involved? I can share dump only after weeked.

Stratehm commented 9 years ago

Sincerly, I think it is a cgminer issue, but I will take a look at your dump if you want.

ghost commented 9 years ago

After some more playng with this cgminer I came to the conclusion: he work fine on 1024x difficulties, e.g. 1024, 2048, 4096 etc. Maybe 256, 512 too. If pool set other digits, cgminer assume it as 0.

Stratehm commented 9 years ago

OK, closing the bug.

Thank you for the feedback.