Skip to content
This repository was archived by the owner on Sep 22, 2018. It is now read-only.

Commit 9e907e2

Browse files
committed
explain Aeon miner fork and unroll low_power a bit
1 parent e68f4b0 commit 9e907e2

File tree

5 files changed

+40
-77
lines changed

5 files changed

+40
-77
lines changed

README.md

Lines changed: 14 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1-
### XMR-Stak-CPU - Monero mining software
1+
### AEON-Stak-CPU - AEON mining software (fork of fireice-uk/xmr-stak-cpu) with AEON and customizable low power mode
22

3-
XMR-Stak is a universal Stratum pool miner. This is the CPU-mining version; there is also an [AMD GPU version](https://github.com/fireice-uk/xmr-stak-amd) and an [NVIDA GPU version](https://github.com/fireice-uk/xmr-stak-nvidia)
3+
**This fork changes it for AEON and makes `low_power` mode customizable. This mode will solve X hashes per thread. Change the values in `crypto/cryptonight_aesni.h` and `minethd.cpp`. Default is 2.**
4+
5+
It may become a PR and get merged back to upstream if the original one wants AEON support.
6+
7+
**This fork won't GPG sign Windows binaries as they are built automatically by AppVeyor CI and I have no Windows Machine**
48

59
#### HTML reports
610
<img src="https://gist.githubusercontent.com/fireice-uk/2da301131ac01695ff79539a27b81d68/raw/4c09cdeee86f94df2e9dd86b927e64aded6184f5/xmr-stak-cpu-hashrate.png" width="260"> <img src="https://gist.githubusercontent.com/fireice-uk/2da301131ac01695ff79539a27b81d68/raw/4c09cdeee86f94df2e9dd86b927e64aded6184f5/xmr-stak-cpu-results.png" width="260"> <img src="https://gist.githubusercontent.com/fireice-uk/2da301131ac01695ff79539a27b81d68/raw/4c09cdeee86f94df2e9dd86b927e64aded6184f5/xmr-stak-cpu-connection.png" width="260">
@@ -10,36 +14,6 @@ XMR-Stak is a universal Stratum pool miner. This is the CPU-mining version; ther
1014
2) Double click the exe file.
1115

1216
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.
13-
```
14-
-----BEGIN PGP SIGNED MESSAGE-----
15-
Hash: SHA256
16-
17-
sha1sum
18-
d34a0ba0dd7b3b1f900a7e02772e197e974b4a73 libeay32.dll
19-
2ee9966a0fc163da58408d91be36b84fa287c10b ssleay32.dll
20-
c406d5fbe4791b73271ab17a9b720fd15bcf5235 xmr-stak-cpu.exe
21-
a6a63f70e19819ef9f65603267308ad9360c8256 xmr-stak-cpu-notls.exe
22-
23-
sha3sum
24-
05003137a87313c81d6c348c9b96411c95d48dc22c35f36c39129747 libeay32.dll
25-
133c065d9ef2c93396382e2ba5d8c3ca8c6a57c6beb0159cb9a4b6c5 ssleay32.dll
26-
4d57aec0df1a9a3cb843b49aaebef3546fedd17a6adf7de77890909f xmr-stak-cpu.exe
27-
739e68fe4f76fe5d4ff314693f28baf0a166ca8e46dee0b0cd044370 xmr-stak-cpu-notls.exe
28-
29-
$ date
30-
Wed 15 Mar 14:39:01 GMT 2017
31-
-----BEGIN PGP SIGNATURE-----
32-
Version: GnuPG v2
33-
34-
iQEcBAEBCAAGBQJYyVJUAAoJEPsk95p+1Bw0sNIIAIPISmp5ut/zb7rlnbfxkrZf
35-
PRuNF1g7+qMen1bUi9FTwoTeebz468kj+fbk8fKljYMyctOrgxbTkPFl7ag1k1UH
36-
rjeiRMVWlw0FBEX+0n9D9Ots+whYmwYXXu8eXJFjyc9nzRxzJl//hLw7ASpwOBRx
37-
C+HcFXJSEcUr5RcDxAR0jK0xHQiu82mp4QxxR1GpIRWfsbqQn+OOClhtedLFed/Y
38-
rXivP2XH0SEAhZfa/JUMCcwkqldMOKotZqhZwOjLLGWkKGYUM04U9N58bGIg7tDj
39-
lBoYbHZRpcWUfDO8o2y+ZQIs+yzMoJHHBBXB9fsHlwq62PTtzjsEVwB2aq9ABzk=
40-
=S8cQ
41-
-----END PGP SIGNATURE-----
42-
4317
```
4418
4519
#### Usage on Linux (Debian-based distros)
@@ -60,54 +34,23 @@ Note - cmake caches variables, so if you want to do a dynamic build later you ne
6034
6135
#### CPU mining performance
6236
63-
Performance is nearly identical to the closed source paid miners. Here are some numbers:
64-
65-
* **I7-2600K** - 266 H/s
66-
* **I7-6700** - 276 H/s (with a separate GPU miner)
67-
* **Dual X5650** - 466 H/s (depends on NUMA)
68-
* **Dual E5640** - 365 H/s (same as above)
37+
* **E5-2630 v1** - 1040 H/s
6938
7039
#### Default dev donation
7140
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.
7241
73-
If you want to donate directly to support further development, here is my wallet
42+
If you want to donate directly to support this **AEON FORK**:
7443
7544
```
76-
4581HhZkQHgZrZjKeCfCJxZff9E3xCgHGF25zABZz7oR71TnbbgiS7sK9jveE6Dx6uMs2LwszDuvQJgRZQotdpHt1fTdDhk
45+
AEON WALLET
46+
Wmt4c5SLGAE9QjeN7B2nt9i2XRegisu96af24VqhKMa53yDZjGui14bMYQK2WaQyj6D3GqndgVk4hMEbSSxdUSSv2qyygU83e
7747
```
7848
79-
#### PGP Key
49+
If you want to donate directly to support further development, here is **fireice-uk XMR wallet**
50+
8051
```
81-
-----BEGIN PGP PUBLIC KEY BLOCK-----
82-
Version: GnuPG v2
83-
84-
mQENBFhYUmUBCAC6493W5y1MMs38ApRbI11jWUqNdFm686XLkZWGDfYImzL6pEYk
85-
RdWkyt9ziCyA6NUeWFQYniv/z10RxYKq8ulVVJaKb9qPGMU0ESfdxlFNJkU/pf28
86-
sEVBagGvGw8uFxjQONnBJ7y7iNRWMN7qSRS636wN5ryTHNsmqI4ClXPHkXkDCDUX
87-
QvhXZpG9RRM6jsE3jBGz/LJi3FyZLo/vB60OZBODJ2IA0wSR41RRiOq01OqDueva
88-
9jPoAokNglJfn/CniQ+lqUEXj1vjAZ1D5Mn9fISzA/UPen5Z7Sipaa9aAtsDBOfP
89-
K9iPKOsWa2uTafoyXgiwEVXCCeMMUjCGaoFBABEBAAG0ImZpcmVpY2VfdWsgPGZp
90-
cmVpY2UueG1yQGdtYWlsLmNvbT6JATcEEwEIACEFAlhYUmUCGwMFCwkIBwIGFQgJ
91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X5/opJBiUnVNK
107-
d+vugnxzpMIJQP11yCZkz/KxV8zQ2QPMuZdAoh3znd/vGCJcp0rWphn4pqxA4vDp
108-
c4hC0Yg9Dha1OoE5CJCqVL+ic4vAyB1urAwBlsd/wH8=
109-
=B5I+
110-
-----END PGP PUBLIC KEY BLOCK-----
52+
XMR WALLET (fireice-uk)
53+
4581HhZkQHgZrZjKeCfCJxZff9E3xCgHGF25zABZz7oR71TnbbgiS7sK9jveE6Dx6uMs2LwszDuvQJgRZQotdpHt1fTdDhk
11154
```
11255
11356
### Common Issues

config.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@
9494
* wallet_address - Your wallet, or pool login.
9595
* pool_password - Can be empty in most cases or "x".
9696
*/
97-
"pool_address" : "aeon.sumominer.com:3334",
98-
"wallet_address" : "WmrxdiPhtGaUpRud8fMgHdLpdS4oXoQa7dJ6bCp7mhey9bu4JSzU225LCLNHSizATDCLuTbPZxaWMW5dVgVRr3R92qpizKzQk.8192",
99-
"pool_password" : "x",
97+
"pool_address" : "",
98+
"wallet_address" : "",
99+
"pool_password" : "",
100100

101101
/*
102102
* Network timeouts.

crypto/cryptonight_aesni.h

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,13 @@ void cryptonight_double_hash(const void* input, size_t len, void* output, crypto
368368
idx[i] = _mm_cvtsi128_si64(cx[i]);
369369
_mm_prefetch((const char*)&l[i][idx[i] & 0xFFFF0], _MM_HINT_T0);
370370
bx[i] = cx[i];
371+
++i;
372+
cx[i] = _mm_load_si128((__m128i *)&l[i][idx[i] & 0xFFFF0]);
373+
cx[i] = _mm_aesenc_si128(cx[i], ax[i]);
374+
_mm_store_si128((__m128i *)&l[i][idx[i] & 0xFFFF0], _mm_xor_si128(bx[i], cx[i]));
375+
idx[i] = _mm_cvtsi128_si64(cx[i]);
376+
_mm_prefetch((const char*)&l[i][idx[i] & 0xFFFF0], _MM_HINT_T0);
377+
bx[i] = cx[i];
371378
}
372379
for(int i = 0; i<hashes; i++){
373380
cx[i] = _mm_load_si128((__m128i *)&l[i][idx[i] & 0xFFFF0]);
@@ -378,6 +385,14 @@ void cryptonight_double_hash(const void* input, size_t len, void* output, crypto
378385
ax[i] = _mm_xor_si128(ax[i], cx[i]);
379386
idx[i] = _mm_cvtsi128_si64(ax[i]);
380387
_mm_prefetch((const char*)&l[i][idx[i] & 0xFFFF0], _MM_HINT_T0);
388+
++i;
389+
cx[i] = _mm_load_si128((__m128i *)&l[i][idx[i] & 0xFFFF0]);
390+
lo = _umul128(idx[i], _mm_cvtsi128_si64(cx[i]), &hi);
391+
ax[i] = _mm_add_epi64(ax[i], _mm_set_epi64x(lo, hi));
392+
_mm_store_si128((__m128i*)&l[i][idx[i] & 0xFFFF0], ax[i]);
393+
ax[i] = _mm_xor_si128(ax[i], cx[i]);
394+
idx[i] = _mm_cvtsi128_si64(ax[i]);
395+
_mm_prefetch((const char*)&l[i][idx[i] & 0xFFFF0], _MM_HINT_T0);
381396
}
382397

383398
}

donate-level.h

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,14 @@
77
* You miner will mine into your usual pool for 99 minutes, then switch to the developer's pool for 1.0 minute.
88
* Switching is instant, and only happens after a successful connection, so you never loose any hashes.
99
*
10-
* If you plan on changing this setting to 0.0 please consider making a one off donation to my wallet:
10+
* If you plan on changing this setting to 0.0 please consider making a one off donation to this fork wallet:
11+
* AEON FORK DONATION WALLET:
12+
* Wmt4c5SLGAE9QjeN7B2nt9i2XRegisu96af24VqhKMa53yDZjGui14bMYQK2WaQyj6D3GqndgVk4hMEbSSxdUSSv2qyygU83e
13+
*
14+
*
15+
* XMR WALLET FROM ORIGINAL CODE:
1116
* 4581HhZkQHgZrZjKeCfCJxZff9E3xCgHGF25zABZz7oR71TnbbgiS7sK9jveE6Dx6uMs2LwszDuvQJgRZQotdpHt1fTdDhk
1217
*
1318
*/
1419

15-
constexpr double fDevDonationLevel = 0.0 / 100.0;
20+
constexpr double fDevDonationLevel = 1.0 / 100.0;

executor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ void executor::on_switch_pool(size_t pool_id)
334334
// If it fails, it fails, we carry on on the usr pool
335335
// as we never receive further events
336336
printer::inst()->print_msg(L1, "Connecting to dev pool...");
337-
const char* dev_pool_addr = jconf::inst()->GetTlsSetting() ? "donate.xmr-stak.net:6666" : "donate.xmr-stak.net:3333";
337+
const char* dev_pool_addr = jconf::inst()->GetTlsSetting() ? "donate-aeon.mooo.com:8080" : "donate-aeon.mooo.com:8080";
338338
if(!pool->connect(dev_pool_addr, error))
339339
printer::inst()->print_msg(L1, "Error connecting to dev pool. Staying with user pool.");
340340
}

0 commit comments

Comments
 (0)