nicehash / NiceHashMiner-Archived

NiceHash easy to use CPU&GPU Miner
841 stars 327 forks source link

Cryptonight mining under Linux #1065

Open Jojonintendo opened 7 years ago

Jojonintendo commented 7 years ago

Hello miners,

I use NiceHash miner under Windows with no problem, but I can't mine cryptonight under Linux. I use latest cpuminer-multi (from AUR, I use Arch Linux) with the following parameters:

cpuminer --algo=cryptonight --threads 8 --cpu-affinity 0xAAAA --url=stratum+tcp://cryptonight.eu.nicehash.com:3355 --userpass=BitcoinAddress.Arch-PC:x

The computer (Ryzen R7 1700) starts to mine normally, as in Windows, but the statistics page never show any progress on cryptonight, and I don't generate any revenue with my CPU, although it is actually mining and sending data, no matter how long I let it run.

I would really appreciate some help on this, because I'm pretty sure it can work just as well as in Windows. Thanks for your time.

Edit: the statistics page shows correctly "2 workers", and I can see both of them as active (GPU for DaggerHashimoto and CPU for cryptonight), but the CPU one never shows any hashrate. It's like NiceHash is receiving activity from my computer, but not workloads.

cowabunga1 commented 7 years ago

confirm, no accepted result by pool

./cpuminer -c config.cfg
** cpuminer-multi 1.3.3 by tpruvot@github **
BTC donation address: 1FhDPLPpw18X4srecguG3MxJYe4a1JsZnd (tpruvot)

[2017-06-21 18:22:47] Using JSON-RPC 2.0
[2017-06-21 18:22:47] CPU Supports AES-NI: YES
[2017-06-21 18:22:47] Starting Stratum on stratum+tcp://cryptonight.eu.nicehash.com:3355
[2017-06-21 18:22:47] 3 miner threads started, using 'cryptonight' algorithm.
[2017-06-21 18:22:53] Stratum difficulty set to 50000.2
[2017-06-21 18:22:56] CPU #0: 26.18 H/s
[2017-06-21 18:22:56] CPU #2: 24.98 H/s
[2017-06-21 18:22:56] CPU #1: 24.49 H/s
[2017-06-21 18:23:45] CPU #2: 29.40 H/s
[2017-06-21 18:23:46] CPU #1: 28.73 H/s
[2017-06-21 18:23:50] CPU #0: 29.06 H/s
[2017-06-21 18:24:45] CPU #2: 28.92 H/s
[2017-06-21 18:24:46] CPU #1: 28.36 H/s
[2017-06-21 18:24:50] CPU #0: 29.09 H/s
[2017-06-21 18:25:44] CPU #2: 28.63 H/s
[2017-06-21 18:25:44] CPU #1: 28.72 H/s
[2017-06-21 18:25:49] CPU #0: 29.36 H/s
[2017-06-21 18:26:04] Stratum difficulty set to 25000.1
[2017-06-21 18:26:42] CPU #1: 29.22 H/s
[2017-06-21 18:26:42] CPU #2: 29.12 H/s
[2017-06-21 18:26:49] CPU #0: 29.05 H/s
Jojonintendo commented 7 years ago

This miner works perfectly: https://github.com/luisvasquez/cpuminer-easy I don't know where the problem is, but this is the workaround.

pbutenee commented 6 years ago

I have the same issue even with the cpuminer-easy. I tried a bunch of the cpuminer-multi alternatives but they all give the same issue...

gravitynoise commented 6 years ago

Same here, nothing accepted by pool

pbutenee commented 6 years ago

I managed to get it working using cpuminer-opt: https://github.com/tpruvot/cpuminer-opt based on this explanation: https://www.reddit.com/r/NiceHash/comments/5mkioc/stratum_recv_line_on_nicehash_with_cryptonight/

It can take a while though before you see some revenue coming in since the difficulty of the algorithm is quite high...

gravitynoise commented 6 years ago

Awesome, thanks I'll give it a look

ocitsamul commented 6 years ago

Hi, how do I run with my wallet at nicehash? https://github.com/tpruvot/cpuminer-opt