/xmr-stak-cpu

Monero CPU miner

Primary LanguageC++GNU General Public License v3.0GPL-3.0

XMR-Stak-CPU - Monero mining software

XMR-Stak is a universal Stratum pool miner. This is the CPU-mining version, but I'm planning to release Nvidia and AMD GPU versions too.

Usage on Windows

  1. Edit the config.txt file to enter your pool login and password.
  2. Double click the exe file.

XMR-Stak should compile on any C++11 compliant compiler. Windows compiler is assumed to be MSVC 2015 CE. MSVC build environment is not vendored.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Windows binary release checksums

sha1sum xmr-stak-cpu.exe
4bc77aa89b046d0ccc62c79b6d9b6329248327a6  xmr-stak-cpu.exe

sha3sum xmr-stak-cpu.exe
c7c68a75b1ac322834b2708f94b2513c452bbac7ceed9a30b6b3b580  xmr-stak-cpu.exe

date
Tue  3 Jan 13:54:40 GMT 2017
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJYa61hAAoJEPsk95p+1Bw05fcH/jwsMBCnS9NllprPJCm+L3PW
9mw2AsWKnPTjfNsV80LWFnl/Sl8VqPlrGiRVcqYtijqgpipGP7APunhB8uKf2pL0
TKKkMn0VX9fcBsBAQb9KYaT8zLuOqaY0rjXcHyHGv2mvRaa5EYeC7uK0pKBgPhOt
ccoRQjxqA1CEfQJICf0WEyaabUnSKfxCQ0dwADD0KMxD6EiJENt3m1+FSn0bA1j/
16l7caqmP4HfyFcoYptF5YRFnf+5V/8lwPMOxIDvfbhHKleX4i7yQDDLcvFynSig
1FVzcIG4c6Fv9FIYPqQEbnN+hU+odnpxbmipJhTEnSmj632pJ9R6Kr8wU45MBkA=
=K/fC
-----END PGP SIGNATURE-----

Usage on Linux

    cmake .
    make

GCC version 5.1 or higher is required for full C++11 support. CMake release compile scripts, as well as CodeBlocks build environment for debug builds is included.

To do a static build for a system without gcc 5.1+

    cmake -DCMAKE_BUILD_TYPE=STATIC
    make

Note - cmake caches variables, so if you want to do a dynamic build later you need to specify '-DCMAKE_BUILD_TYPE=RELEASE'

CPU mining performance

Performance is nearly identical to the closed source paid miners. Here are some numbers:

  • I7-2600K - 266 H/s
  • I7-6700 - 276 H/s (with a separate GPU miner)
  • Dual X5650 - 466 H/s (depends on NUMA)
  • Dual E5640 - 365 H/s (same as above)

Example reports

HASHRATE REPORT
| ID | 2.5s |  60s |  15m | ID | 2.5s |  60s |  15m |
|  0 | 31.7 | 30.7 | 30.5 |  1 | 30.6 | 30.6 | 30.6 |
|  2 | 30.3 | 30.6 | 30.6 |  3 | 30.6 | 30.6 | 30.6 |
|  4 | 35.3 | 35.5 | 35.6 |  5 | 35.7 | 35.7 | 35.7 |
|  6 | 35.4 | 35.6 | 35.6 |  7 | 35.7 | 35.7 | 35.7 |
|  8 | 31.7 | 30.7 | 30.5 |  9 | 30.6 | 30.6 | 30.6 |
| 10 | 30.4 | 30.6 | 30.6 | 11 | 30.6 | 30.6 | 30.6 |
-----------------------------------------------------
Totals:   388.7 388.7 388.7 H/s
Highest:  388.7 H/s
RESULT REPORT
Difficulty       : 8192
Good results     : 5825 / 5826 (100.0 %)
Avg result time  : 10.3 sec
Pool-side hashes : 22683648

Top 10 best results found:
|  0 |         15407238 |  1 |         12699745 |
|  2 |         12194202 |  3 |          6999845 |
|  4 |          5533935 |  5 |          5315338 |
|  6 |          4700351 |  7 |          4500227 |
|  8 |          4023567 |  9 |          4021473 |

Error details:
| Count |                       Error text |           Last seen |
|     1 | [NETWORK ERROR]                  | 2017-01-02 21:29:15 |
CONNECTION REPORT
Connected since : 2017-01-02 21:29:40
Pool ping time  : 288 ms

Network error log:
| Date                |                                                       Error text |
| 2017-01-02 21:29:15 | CALL error: Timeout while waiting for a reply                    |
| 2017-01-02 21:29:30 | CONNECT error: GetAddrInfo: Name or service not known            |

Default dev donation

By default the miner will donate 1% of the hashpower (1 minute in 100 minutes) to my pool. If you want to change that, edit donate-level.h before you build the binaries.

If you want to donate directly to support further development, here is my wallet

  • 4581HhZkQHgZrZjKeCfCJxZff9E3xCgHGF25zABZz7oR71Tn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