Giter Site home page Giter Site logo

xmrig / xmrig-proxy Goto Github PK

View Code? Open in Web Editor NEW
589.0 70.0 323.0 2.74 MB

Monero (XMR) Stratum protocol proxy

Home Page: https://xmrig.com/proxy

License: GNU General Public License v3.0

CMake 1.60% C++ 80.99% C 17.40%
monero xmr aeon xmrig proxy stratum cryptonight randomx

xmrig-proxy's Introduction

XMRig

Github All Releases GitHub release GitHub Release Date GitHub license GitHub stars GitHub forks

XMRig is a high performance, open source, cross platform RandomX, KawPow, CryptoNight and GhostRider unified CPU/GPU miner and RandomX benchmark. Official binaries are available for Windows, Linux, macOS and FreeBSD.

Mining backends

  • CPU (x86/x64/ARMv7/ARMv8)
  • OpenCL for AMD GPUs.
  • CUDA for NVIDIA GPUs via external CUDA plugin.

Download

Usage

The preferred way to configure the miner is the JSON config file as it is more flexible and human friendly. The command line interface does not cover all features, such as mining profiles for different algorithms. Important options can be changed during runtime without miner restart by editing the config file or executing API calls.

  • Wizard helps you create initial configuration for the miner.
  • Workers helps manage your miners via HTTP API.

Donations

  • Default donation 1% (1 minute in 100 minutes) can be increased via option donate-level or disabled in source code.
  • XMR: 48edfHu7V9Z84YzzMa6fUueoELZ9ZRXq9VetWzYGzKt52XU5xvqgzYnDK9URnRoJMk1j8nLwEVsaSWJ4fhdUyZijBGUicoD

Developers

Contacts

xmrig-proxy's People

Contributors

cr4dl avatar deadmanwalkingto avatar impomezia avatar ruzickap avatar schernykh avatar xmrig avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

xmrig-proxy's Issues

speed issuse. very low.

I have about 8000 computer.
use xmrig-proxy nodejs 800khs.
I couldn't use it the day before yesterday. connect error.

i use this version.
ubuntu 16.04 .

[2017-08-25 07:35:41] 19.4 KH/s, shares: 257/0 +50, upstreams: 38, miners: 6113 (max 6300) +1904/-2030

19.4KH/S...

I should 800khs ... please help me T_T... thank you....

xmr-stak-nvidia

Can I use xmr-stak-nvidia with xmrig-proxy?

I'm using already xmr-stak-cpu with no problem.
The xmr-stak-nvidia miner is recognized by the proxy as connected but the hashrate is zero

WORKER NAME | LAST IP | COUNT | ACCEPTED | REJ | 10 MIN |
47d3xw...Wy47ikbNRJ.GC1 | 192.168.85.207 | 1 | 20 | 0 | 0.2 KH/s |
47d3xw...Wy47ikbNRJ.GG1 | 192.168.85.207 | 1 | 0 | 0 | 0.0 KH/s |
47d3xw...Wy47ikbNRJ.GG2 | 192.168.85.205 | 1 | 0 | 0 | 0.0 KH/s |

The GC1 worker is a xmr-stak-cpu miner, the other two are nvidia miners.

Both nvidia miners have an hashrate of 620H/s .

Moreover, does xmrig-proxy send the worker id to the pool? I'm using minexmr.com as poll and in the "Per Worker Stats" I can't find the worker IDs but only my address wallet. With another xmr proxy I could see every single worker IDs.

Instructions

Can you provide dependencies needed ?
I tired to run on ubuntu 16.04 lts but after deploying
It shows status : errored in pm2 show xmrig-proxy
Also if possible the supported pools
Good luck for your work
35.185.227.100_20170501172813.txt

debian installation error

# cmake ..
-- The C compiler identification is GNU 4.9.2
-- The CXX compiler identification is GNU 4.9.2
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found UV: /usr/lib/x86_64-linux-gnu/libuv.so  
-- Looking for syslog.h
-- Looking for syslog.h - found
-- Found mhd: /usr/include  
-- Configuring done
-- Generating done
-- Build files have been written to: /root/xmrig-proxy/build
root@user:~/xmrig-proxy/build# make
Scanning dependencies of target xmrig-proxy

[  2%] Building CXX object CMakeFiles/xmrig-proxy.dir/src/api/Api.cpp.o
In file included from /usr/include/c++/4.9/array:35:0,
                 from /root/xmrig-proxy/src/proxy/StatsData.h:29,
                 from /root/xmrig-proxy/src/api/ApiState.h:28,
                 from /root/xmrig-proxy/src/api/Api.cpp:28:
/usr/include/c++/4.9/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
 #error This file requires compiler and library support for the \
  ^
/root/xmrig-proxy/src/api/Api.cpp:31:1: warning: identifier ‘nullptr’ is a keyword in C++11 [-Wc++0x-compat]
 ApiState *Api::m_state = nullptr;
 ^
In file included from /root/xmrig-proxy/src/api/ApiState.h:28:0,
                 from /root/xmrig-proxy/src/api/Api.cpp:28:
/root/xmrig-proxy/src/proxy/StatsData.h:87:30: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11
     double hashrate[5] { 0.0 };
                              ^
/root/xmrig-proxy/src/proxy/StatsData.h:88:10: error: ‘array’ in namespace ‘std’ does not name a template type
     std::array<uint64_t, 10> topDiff { { } };
          ^
/root/xmrig-proxy/src/proxy/StatsData.h:87:24: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
     double hashrate[5] { 0.0 };
                        ^
/root/xmrig-proxy/src/proxy/StatsData.h:87:30: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
     double hashrate[5] { 0.0 };
                              ^
/root/xmrig-proxy/src/proxy/StatsData.h: In member function ‘uint32_t StatsData::avgLatency() const’:
/root/xmrig-proxy/src/proxy/StatsData.h:70:9: warning: ‘auto’ changes meaning in C++11; please remove it [-Wc++0x-compat]
         auto v = latency;
         ^
/root/xmrig-proxy/src/proxy/StatsData.h:70:14: error: ‘v’ does not name a type
         auto v = latency;
              ^
/root/xmrig-proxy/src/proxy/StatsData.h:71:26: error: ‘v’ was not declared in this scope
         std::nth_element(v.begin(), v.begin() + calls / 2, v.end());
                          ^
/root/xmrig-proxy/src/api/Api.cpp: At global scope:
/root/xmrig-proxy/src/api/Api.cpp:31:26: error: ‘nullptr’ was not declared in this scope
 ApiState *Api::m_state = nullptr;
                          ^
/root/xmrig-proxy/src/api/Api.cpp: In static member function ‘static char* Api::get(const char*, int*)’:
/root/xmrig-proxy/src/api/Api.cpp:53:16: error: ‘nullptr’ was not declared in this scope
         return nullptr;
                ^
CMakeFiles/xmrig-proxy.dir/build.make:54: recipe for target 'CMakeFiles/xmrig-proxy.dir/src/api/Api.cpp.o' failed
make[2]: *** [CMakeFiles/xmrig-proxy.dir/src/api/Api.cpp.o] Error 1
CMakeFiles/Makefile2:60: recipe for target 'CMakeFiles/xmrig-proxy.dir/all' failed
make[1]: *** [CMakeFiles/xmrig-proxy.dir/all] Error 2
Makefile:76: recipe for target 'all' failed
make: *** [all] Error 2
# lsb_release -a
No LSB modules are available.
Distributor ID:	Debian
Description:	Debian GNU/Linux 8.9 (jessie)
Release:	8.9
Codename:	jessie

Disconnect old worker if new with same name connected

Hello. Some workers restart every 3-5 min and create new connections. How can i kill old zombie connections? Thanks.

[2017-10-30 12:32:00] #337 login: ***, "570", ua: "xmr-stak-cpu/1.3.0-1.5.0", count: 337
...
[2017-10-30 12:35:01] #348 login: ***, "570", ua: "xmr-stak-cpu/1.3.0-1.5.0", count: 348

Some workers connections resets every 5min

In console of proxy
[2017-08-13 16:04:59] 146.0 KH/s, shares: 3804/17 +80, upstreams: 11, miners: 1890 (max 1896) +432/-431
[2017-08-13 16:05:59] 168.0 KH/s, shares: 3881/17 +77, upstreams: 11, miners: 1890 (max 1896) +0/-0
[2017-08-13 16:06:59] 168.0 KH/s, shares: 3962/17 +81, upstreams: 11, miners: 1890 (max 1896) +0/-0
[2017-08-13 16:07:59] 200.0 KH/s, shares: 4072/17 +110, upstreams: 11, miners: 1890 (max 1896) +7/-7
[2017-08-13 16:08:59] 186.0 KH/s, shares: 4161/17 +89, upstreams: 11, miners: 1888 (max 1896) +0/-2
[2017-08-13 16:09:59] 168.0 KH/s, shares: 4243/17 +82, upstreams: 11, miners: 1888 (max 1896) +669/-669
[2017-08-13 16:10:59] 166.0 KH/s, shares: 4327/17 +84, upstreams: 11, miners: 1889 (max 1896) +3/-2
[2017-08-13 16:11:59] 204.0 KH/s, shares: 4433/17 +106, upstreams: 11, miners: 1886 (max 1896) +0/-3
[2017-08-13 16:12:59] 192.0 KH/s, shares: 4527/17 +94, upstreams: 11, miners: 1886 (max 1896) +0/-0
[2017-08-13 16:13:59] 146.0 KH/s, shares: 4602/17 +75, upstreams: 11, miners: 1885 (max 1896) +1/-2
[2017-08-13 16:14:59] 174.0 KH/s, shares: 4682/17 +80, upstreams: 11, miners: 1885 (max 1896) +425/-425
[2017-08-13 16:15:59] 160.0 KH/s, shares: 4765/17 +83, upstreams: 11, miners: 1885 (max 1896) +0/-0
[2017-08-13 16:16:59] 206.0 KH/s, shares: 4867/17 +102, upstreams: 11, miners: 1885 (max 1896) +3/-3
[2017-08-13 16:17:59] 162.0 KH/s, shares: 4951/17 +84, upstreams: 11, miners: 1882 (max 1896) +1/-4
[2017-08-13 16:18:59] 178.0 KH/s, shares: 5035/17 +84, upstreams: 11, miners: 1884 (max 1896) +3/-1
[2017-08-13 16:19:59] 162.0 KH/s, shares: 5118/17 +83, upstreams: 11, miners: 1884 (max 1896) +426/-426

In miner
| 2017-08-13 16:29:27 | RECEIVE error: socket closed |
| 2017-08-13 16:39:38 | RECEIVE error: socket closed |
| 2017-08-13 16:49:48 | RECEIVE error: socket closed |
| 2017-08-13 16:59:58 | RECEIVE error: socket closed |
| 2017-08-13 17:10:08 | RECEIVE error: socket closed |
| 2017-08-13 17:20:19 | RECEIVE error: socket closed |

Working direct with pool give no such issue.

High diff on worker side

I have 10.000 workers using xmrig mining through xmrig-proxy. But on worker side diff is 100.000 while speed only 30H/S, too long to get a share . Should I configure "--custom-diff" and what is the optimal value? Thanks for your help!

Nicehash Error

[2017-09-27 15:35:00] #000 new job from cryptonight.eu.nicehash.com:3355 diff 80000
[2017-09-27 15:35:09] #000 rejected (0/2+0) diff 80000 "Invalid nonce; is miner not compatible with NiceHash?" (96 ms)

Miner is xmr-miner-cpu nonce true on miner side.

What is that

Hi, sorry for this. I dont understand what does it do. Can you explain it for me please. Its proxy for xmr miner? I need aeon miner proxy

Questions about proxy

In the XMR-STAK, is there a nicehash_nonce option that is compatible with your proxy?

Is there a performance gain when using a proxy? Now all my miners work through Kerio firewall (port mapping) should I switch to your proxy? (pool xmr.crypto-pool.fr)

Build on Fedora 23

Build with some errors.
Example:
Platform_unix.cpp:45:75: error: 'snprintf' was not declared in this scope
Fix:

diff --git a/src/App.cpp b/src/App.cpp
index 9444f3a..2a5c4ce 100644
--- a/src/App.cpp
+++ b/src/App.cpp
@@ -21,7 +21,7 @@
  *   along with this program. If not, see <http://www.gnu.org/licenses/>.
  */
 
-
+#include <stdio.h>
 #include <stdlib.h>
 #include <uv.h>
 
diff --git a/src/Platform_unix.cpp b/src/Platform_unix.cpp
index 27d8de3..f3a7b5a 100644
--- a/src/Platform_unix.cpp
+++ b/src/Platform_unix.cpp
@@ -21,7 +21,7 @@
  *   along with this program. If not, see <http://www.gnu.org/licenses/>.
  */
 
-
+#include <stdio.h>
 #include <sched.h>
 #include <stdlib.h>
 #include <string.h>
diff --git a/src/log/ConsoleLog.cpp b/src/log/ConsoleLog.cpp
index 6439eb0..970b281 100644
--- a/src/log/ConsoleLog.cpp
+++ b/src/log/ConsoleLog.cpp
@@ -21,7 +21,7 @@
  *   along with this program. If not, see <http://www.gnu.org/licenses/>.
  */
 
-
+#include <stdio.h>
 #include <stdarg.h>
 #include <stdlib.h>
 #include <string.h>
diff --git a/src/log/FileLog.cpp b/src/log/FileLog.cpp
index 9a8711a..92807fe 100644
--- a/src/log/FileLog.cpp
+++ b/src/log/FileLog.cpp
@@ -21,7 +21,7 @@
  *   along with this program. If not, see <http://www.gnu.org/licenses/>.
  */
 
-
+#include <stdio.h>
 #include <stdarg.h>
 #include <stdlib.h>
 #include <string.h>
diff --git a/src/log/Log.cpp b/src/log/Log.cpp
index 1efd486..6e7b931 100644
--- a/src/log/Log.cpp
+++ b/src/log/Log.cpp
@@ -21,7 +21,7 @@
  *   along with this program. If not, see <http://www.gnu.org/licenses/>.
  */
 
-
+#include <stdio.h>
 #include <stdarg.h>
 #include <stdlib.h>
 #include <string.h>

Duplicate shares submitted which result in IP ban when mining AEON

Hello,

Yesterday I got banned for 10 minutes twice for submitting duplicated shares, which forced me to stop using xmrig-proxy and switch to direct connections.

[2017-10-16 16:44:05] 5.0 KH/s, shares: 2411/0 +2, upstreams: 1, miners: 9 (max 10) +0/-0
[2017-10-16 16:44:33] #000 accepted (2412/0+0) diff 150000 (44 ms)
[2017-10-16 16:44:52] #000 rejected (2412/1+0) diff 150000 "Duplicate share" (47 ms)
[2017-10-16 16:44:56] #000 rejected (2412/2+0) diff 150000 "your IP is banned" (54 ms)
[2017-10-16 16:44:56] #000 no active pools, stop
[2017-10-16 16:45:02] [aeon.minegeeks.net:3336] error: "your IP is banned", code: -1
[2017-10-16 16:45:05] 2.5 KH/s, shares: 2412/2 +1, upstreams: 0, miners: 9 (max 10) +0/-0
[2017-10-16 16:45:08] [aeon.minegeeks.net:3336] error: "your IP is banned", code: -1
...
[2017-10-16 16:54:50] [aeon.minegeeks.net:3336] error: "your IP is banned", code: -1
[2017-10-16 16:54:56] #000 use pool aeon.minegeeks.net:3336 108.61.252.91
[2017-10-16 16:54:56] #000 new job from aeon.minegeeks.net:3336 diff 150000
[2017-10-16 16:55:05] 0.0 KH/s, shares: 2412/2 +0, upstreams: 1, miners: 9 (max 10) +0/-0
[2017-10-16 16:55:25] #000 accepted (2413/2+50) diff 150000 (108 ms)
...
[2017-10-16 17:25:20] 15.0 KH/s, shares: 2551/2 +6, upstreams: 1, miners: 9 (max 10) +0/-0
[2017-10-16 17:25:21] #000 rejected (2551/3+50) diff 150000 "Duplicate share" (52 ms)
[2017-10-16 17:25:31] #000 rejected (2551/4+50) diff 150000 "your IP is banned" (46 ms)
[2017-10-16 17:25:31] #000 no active pools, stop
[2017-10-16 17:25:36] [aeon.minegeeks.net:3336] error: "your IP is banned", code: -1
...
[2017-10-16 17:32:48] [aeon.minegeeks.net:3336] error: "your IP is banned", code: -1
[2017-10-16 17:32:51] Ctrl+C received, exiting

I was using 10 miners with combined hashrate around 10 KH/s.
All miners are aeon-stak-cpu with nicehash_nonce set to true.

I am wondering if this is caused by a bug or it is normal to occur (which makes xmrig-proxy unusable for me).

Best Regards.

For ARM (Raspberry PI 3)

Hi!
I have this error... Please, help!

armuser@Raspberry:~/xmrig-proxy/build$ cmake .. -DCMAKE_BUILD_TYPE=Release -DUV_LIBRARY=/usr/lib/arm-linux-gnueabihf/libuv.a -DWITH_HTTPD=OFF
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found UV: /usr/lib/arm-linux-gnueabihf/libuv.a
-- Looking for syslog.h
-- Looking for syslog.h - found
-- Configuring done
-- Generating done
-- Build files have been written to: /home/armuser/xmrig-proxy/build

armuser@Raspberry:~/xmrig-proxy/build$ make
Scanning dependencies of target xmrig-proxy
[ 2%] Building CXX object CMakeFiles/xmrig-proxy.dir/src/api/Api.cpp.o
[ 4%] Building CXX object CMakeFiles/xmrig-proxy.dir/src/api/ApiState.cpp.o
In file included from /home/armuser/xmrig-proxy/src/3rdparty/rapidjson/document.h:20:0,
from /home/armuser/xmrig-proxy/src/api/ApiState.cpp:39:
/home/armuser/xmrig-proxy/src/3rdparty/rapidjson/reader.h:35:23: fatal error: emmintrin.h: No such file or directory
compilation terminated.
CMakeFiles/xmrig-proxy.dir/build.make:86: recipe for target 'CMakeFiles/xmrig-proxy.dir/src/api/ApiState.cpp.o' failed
make[2]: *** [CMakeFiles/xmrig-proxy.dir/src/api/ApiState.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/xmrig-proxy.dir/all' failed
make[1]: *** [CMakeFiles/xmrig-proxy.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

Compile FreeBSD 11 release error

/usr/local/scripts/xmrig-proxy/src/Platform_unix.cpp:128:35: error: use of undeclared identifier 'SCHED_IDLE'
if (sched_setscheduler(0, SCHED_IDLE, &param) != 0) {
^
/usr/local/scripts/xmrig-proxy/src/Platform_unix.cpp:129:35: error: use of undeclared identifier 'SCHED_BATCH'
sched_setscheduler(0, SCHED_BATCH, &param);
^
2 errors generated.
*** Error code 1

Stop.
make[2]: stopped in /usr/local/scripts/xmrig-proxy
*** Error code 1

Stop.
make[1]: stopped in /usr/local/scripts/xmrig-proxy
*** Error code 1

Stop.
make: stopped in /usr/local/scripts/xmrig-proxy

config.json:1205: Invalid value.No pool URL supplied. Exiting. ?

Whenever I edit the pool URL in the config file I get the above error... I can edit any other aspect of the file, but whenever I touch this vector it breaks; even if I put the original URL back in the file it will error... What am I doing wrong?? ;)

{
"algo": "cryptonight", // cryptonight (default) or cryptonight-lite
"av": 0, // algorithm variation, 0 auto select
"background": false, // true to run the miner in the background
"colors": true, // false to disable colored output
"cpu-affinity": null, // set process affinity to CPU core(s), mask "0x3" for cores 0 and 1
"cpu-priority": null, // set process priority (0 idle, 2 normal to 5 highest)
"donate-level": 5, // donate level, mininum 1%
"log-file": null, // log all output to a file, example: "c:/some/path/xmrig.log"
"max-cpu-usage": 100, // maximum CPU usage for automatic mode, usually limiting factor is CPU cache not this option.
"print-time": 60, // print hashrate report every N seconds
"retries": 5, // number of times to retry before switch to backup server
"retry-pause": 5, // time to pause between retries
"safe": false, // true to safe adjust threads and av settings for current CPU
"syslog": false, // use system log for output messages
"threads": null, // number of miner threads
"pools": [
{
"url": “monerohash.com:3333”, // URL of mining server
"user": "thisiswhereIputmywallet", // username for mining server
"pass": "x", // password for mining server
"keepalive": true, // send keepalived for prevent timeout (need pool support)
"nicehash": false // enable nicehash/xmrig-proxy support
}
],
"api": {
"port": 0, // port for the miner API https://github.com/xmrig/xmrig/wiki/API
"access-token": null, // access token for API
"worker-id": null // custom worker-id for API
}
}

issues with using xmrig-proxy with MINEXMR pool

Thanks for making such a great product to us!!! I have been using xmrig, and I keep 2% donation on all the time.

When I use xmrig cpu miner alone with pool.minexmr.com, minexmr auto adjusts the difficulty on their side.
So I use WALLET+DIFF as username in xmrig config, just to make sure to use fixed difficulty.

But now I'm using xmrig miner + xmrig-proxy,
should I set WALLET+DIFF in the USER part of the proxy config file? I saw the proxy config file has "custom-diff", should I also set the difficulty value there.... ?
and in this case what should I set in the USER , PASS, Keepalive settings of the xmrig miner ? I can just put anything as the nickname of the device for the username? or I still need to use the WALLET+DIFF as username and X as the password from the minexmr pool side? what about keep alive setting its for the xmrig proxy or minexmr pool ?

btw,
1.
I learnt GCC compiled X86 xmrig cpu miner has better performance.
what about for X64 xmrig cpu miner? gcc compiled has better performance or msvc ? or its the same?

Using
-o stratum+tcp://pool.minexmr.com:4444
or
-o pool.minexmr.com:4444
for the command line both works, does it has any difference? which one is better way to use ?

Great thanks if someone can clear these confusion for me. I have read all the posts here on GitHub and Reddit forum. I would like to pay $50 worth of XMR for thank you, plz leave your XMR address

Error with latest 2.4.0

I use your proxy to mine Aeon with this pool and after 2 or 3 minutes I got this error :

xmrig-proxy: /root/src/xmrig-proxy/src/3rdparty/rapidjson/document.h:1053: rapidjson::GenericValue<Encoding, Allocator>& rapidjson::GenericValue<Encoding, Allocator>::operator[](const rapidjson::GenericValue<Encoding, SourceAllocator>&) [with SourceAllocator = rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>; Encoding = rapidjson::UTF8<char>; Allocator = rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>]: Assertion `false' failed.
Aborted

I just build the sources from your latest version (2.4.0) : this commit precisely 1e30256

Thanks in advance for any help ;)

few questions

Hello. Now im use xmr-node-proxy for my workers, but it does not support dwarfpool :( so

  1. xmrig-proxy support dwarfpool?
  2. xmrig-proxy support other xmr miners like xmr-stak-cpu?
  3. xmrig-proxy just proxy or my 100 workers is 1 for pool?

Thanks so much!

build at alpine

  1. apk add cmake build-base libmicrohttpd-dev libuuid util-linux-dev
  2. cd xmrig-proxy-2.4.2/
  3. mkdir build
  4. cd build
  5. cmake ..
  6. make

Build on OSX

10.11.6
Xcode 8.2.1
Build version 8C1002
Latest Homebrew

src/proxy/Proxy.cpp:43:5: error: no member named 'srand' in namespace 'std'; did you mean simply 'srand'?
std::srand(std::time(0) ^ (uintptr_t) this);
^~~~~~~~~~
srand
/usr/include/stdlib.h:161:7: note: 'srand' declared here
void srand(unsigned);
^

Just need some guidance

To use the proxy, how should the miner config look besides just enabling nicehash, there has to be more to it. Please lay it out for me.

decrease worker diff?

it's kinda unfair how 1 core and 8 core should mine with 80k diff both. the 1 core takes forever to submit valid work.

uuid/uuid.h

[ 2%] Building CXX object CMakeFiles/xmrig-proxy.dir/src/proxy/Uuid_unix.cpp.o
/root/xmrig-proxy/src/proxy/Uuid_unix.cpp:24:23: fatal error: uuid/uuid.h: No such file or directory
#include <uuid/uuid.h>
^
compilation terminated.
CMakeFiles/xmrig-proxy.dir/build.make:997: recipe for target 'CMakeFiles/xmrig-proxy.dir/src/proxy/Uuid_unix.cpp.o' failed
make[2]: *** [CMakeFiles/xmrig-proxy.dir/src/proxy/Uuid_unix.cpp.o] Error 1
CMakeFiles/Makefile2:60: recipe for target 'CMakeFiles/xmrig-proxy.dir/all' failed
make[1]: *** [CMakeFiles/xmrig-proxy.dir/all] Error 2
Makefile:76: recipe for target 'all' failed
make: *** [all] Error 2

colors and log

Even if I turn the colors off, xmrig-proxy still shows some colored output on screen.
I don't really care about it on screen, but color codes breaks the log file, example:

[2017-08-10 16:34:47] #000 �[01;37muse pool �[01;36mxmr-eu1.nanopool.org:14444 �[01;30m79.137.82.5
[2017-08-10 16:34:47] #000 �[01;35mnew job�[0m from �[01;37mxmr-eu1.nanopool.org:14444�[0m diff �[01;37m120001

As a solution I would appreciate removed ANSI codes in log.

I have in config following setting:

"colors": false,
"log-file": "log.log",

Please fix. Thank you!

nicehash

The proxy doesn't work with nicehash? I have the --nicehash option going on miners to this proxy, but all shares still rejected from nicehash server.

Running on win server 2003 x64

Hi!
Trying 2 run on server 2003 x64 but get error " .exe is not a valid win 32 application"
Installed .NET frameworks 4.0 and C++ Runtime 2015.
Tried x64 and x32 versions of program - same issue

How to compile under Windows ?

C:\xmrig-proxy-2.4.2\build>cmake -G "Visual Studio 15 2017 Win64" -T v141,host=x
64 ..
-- The C compiler identification is MSVC 19.11.25547.0
-- The CXX compiler identification is MSVC 19.11.25547.0
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/
2017/Community/VC/Tools/MSVC/14.11.25503/bin/Hostx64/x64/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/
2017/Community/VC/Tools/MSVC/14.11.25503/bin/Hostx64/x64/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studi
o/2017/Community/VC/Tools/MSVC/14.11.25503/bin/Hostx64/x64/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studi
o/2017/Community/VC/Tools/MSVC/14.11.25503/bin/Hostx64/x64/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at C:/Program Files/CMake/share/cmake-3.10/Modules/FindPackageHandle
StandardArgs.cmake:137 (message):
  Could NOT find UV (missing: UV_LIBRARY UV_INCLUDE_DIR)
Call Stack (most recent call first):
  C:/Program Files/CMake/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.
cmake:378 (_FPHSA_FAILURE_MESSAGE)
  cmake/FindUV.cmake:8 (find_package_handle_standard_args)
  CMakeLists.txt:154 (find_package)


-- Configuring incomplete, errors occurred!
See also "C:/xmrig-proxy-2.4.2/build/CMakeFiles/CMakeOutput.log".

Variable hashrate

Hi,
I have 2 PC running xmr-stak miners. Both the miners report constant hashrate, but the proxy report variable hashrate:

[2017-10-10 08:13:22] 4.7 KH/s, shares: 245/0 +1, upstreams: 1, miners: 2 (max 3) +0/-0
[2017-10-10 08:14:22] 0.0 KH/s, shares: 245/0 +0, upstreams: 1, miners: 2 (max 3) +0/-0
[2017-10-10 08:15:22] 9.5 KH/s, shares: 247/0 +2, upstreams: 1, miners: 2 (max 3) +0/-0
[2017-10-10 08:16:22] 4.7 KH/s, shares: 248/0 +1, upstreams: 1, miners: 2 (max 3) +0/-0
[2017-10-10 08:17:22] 0.0 KH/s, shares: 248/0 +0, upstreams: 1, miners: 2 (max 3) +0/-0
[2017-10-10 08:18:22] 0.0 KH/s, shares: 248/0 +0, upstreams: 1, miners: 2 (max 3) +0/-0
[2017-10-10 08:19:22] 0.0 KH/s, shares: 248/0 +0, upstreams: 1, miners: 2 (max 3) +0/-0
[2017-10-10 08:20:22] 0.0 KH/s, shares: 248/0 +0, upstreams: 1, miners: 2 (max 3) +0/-0
[2017-10-10 08:21:22] 4.7 KH/s, shares: 249/0 +1, upstreams: 1, miners: 2 (max 3) +0/-0
[2017-10-10 08:22:22] 0.0 KH/s, shares: 249/0 +0, upstreams: 1, miners: 2 (max 3) +0/-0
[2017-10-10 08:23:22] 0.0 KH/s, shares: 249/0 +0, upstreams: 1, miners: 2 (max 3) +0/-0
[2017-10-10 08:24:22] 4.7 KH/s, shares: 250/0 +1, upstreams: 1, miners: 2 (max 3) +0/-0
[2017-10-10 08:25:22] 4.7 KH/s, shares: 251/0 +1, upstreams: 1, miners: 2 (max 3) +0/-0
[2017-10-10 08:26:22] 4.7 KH/s, shares: 252/0 +1, upstreams: 1, miners: 2 (max 3) +1/-1
[2017-10-10 08:27:23] 4.7 KH/s, shares: 253/0 +1, upstreams: 1, miners: 2 (max 3) +0/-0
[2017-10-10 08:28:23] 0.0 KH/s, shares: 253/0 +0, upstreams: 1, miners: 2 (max 3) +0/-0
[2017-10-10 08:29:23] 0.0 KH/s, shares: 253/0 +0, upstreams: 1, miners: 2 (max 3) +0/-0
[2017-10-10 08:30:23] 4.7 KH/s, shares: 254/0 +1, upstreams: 1, miners: 2 (max 3) +0/-0
[2017-10-10 08:31:23] 0.0 KH/s, shares: 254/0 +0, upstreams: 1, miners: 2 (max 3) +0/-0
[2017-10-10 08:32:23] 11.5 KH/s, shares: 256/0 +2, upstreams: 1, miners: 2 (max 3) +0/-0
[2017-10-10 08:33:23] 0.0 KH/s, shares: 256/0 +0, upstreams: 1, miners: 2 (max 3) +0/-0
[2017-10-10 08:34:23] 0.0 KH/s, shares: 256/0 +0, upstreams: 1, miners: 2 (max 3) +0/-0
[2017-10-10 08:35:23] 0.0 KH/s, shares: 256/0 +0, upstreams: 1, miners: 2 (max 3) +0/-0

Even the pool worker stat report variable hashrate.
worker_stats

I have noticed that the miners have frequent connection problems:
2017-10-10 04:22:01 RECEIVE error: socket closed
2017-10-10 04:32:10 RECEIVE error: socket closed
2017-10-10 04:42:21 RECEIVE error: socket closed
2017-10-10 05:26:15 RECEIVE error: socket closed
2017-10-10 06:11:54 RECEIVE error: socket closed
2017-10-10 06:33:23 RECEIVE error: socket closed
2017-10-10 06:46:42 RECEIVE error: socket closed
2017-10-10 07:26:31 RECEIVE error: socket closed
2017-10-10 07:36:40 RECEIVE error: socket closed

Are those issues correlated?
How can i solve them?

Thanks

Add my simple php stat-page

Hello.
My first php script :-)
Change port in $url and simple use.

Change: add needed php-modules check.
Change:

  1. Add Auto-Refresh page after 5min
  2. Fix $url for new API

Change: convert timestap to human readable format
proxy-stat.php.gz

diffuculty adjustement : please eplain logic?

hello,
the new version of xmrig-proxy permit adjust dificulty per worker .

But i'm not sure understand perfectly this possibility .

for exemple, my pool requiere a minimal difficulty 1063.

if i have 9 worker, with aproximatilvy 320h/s capability per worker, what it's the best configuration for this?

what is the logic for adjust the dificulty?

I hope my text is comprehensible, my english is very bad and i haven't use traduction tools ...

clarifying the advantage of a proxy

Pardon me if this isn't the most suitable place to ask this noob-like question, what exactly are the advantages of using this proxy program instead of just pointing multiple miners directly to the pool?

Invalid nonce

Hi there,

Im trying to rely on using xmrig-proxy on a single host and have many miners connect through that machine to NiceHash. I have only set the following in the config.json on the proxy:
"url": "cryptonight.eu.nicehash.com:3355",
"user": "My Wallet.ID",
"pass": "x"

On a different PC with xmrig is have only changed the following in config.json:
"url": "192.168.1.1:3333",
"user": "Miner1",
"pass": "x",
"keepalive": true,
"nicehash": true

The miner connects to the proxy and begins to mine. Every hash that is found is rejected saying "Invalid nonce; is miner not compatible with NiceHash?"

Any help would be greatly appreciated

Looking for cryptonight proxy

I trying to use xmrig-proxy with electroneum coin (base on Monero and cryptonight), then failed all results is invalid.

I like XMRig very much, lightweight and easy to install.

Any suggestion to me?

Thanks

Reason for low efficiency

When I press 'c' to get connection info, I see that I have a 10% efficiency in 'red'. why is it low? and how do I improve it.
Thanks in advance for your support.

Critical error!!! MAX WORKERS 999

Программа не выдерживает более 1000 майнеров, дальше майнеры не подключаются, программа отвергает их. В логах максимальный COUNT 999

Как исправить данную проблему?

The program does not stand more than 1000 miners, then the miners do not connect, the program rejects them. In logs max COUNT 999

How can I fix this problem?

lower share recived

i use Atrides - xmr-proxy and i am new on xmrig-proxy

mining software is xmrig
mining pool dwarf

when i get about 1.7 kh - 42 peers by atrides proxy , same time i get 0.6 - low share and 32 connection with xmrig proxy.
second thing is i try use nicehash but i got red warn about incompatible nonce with nicehash
third please consider change diff for future feature its very handy
best wishes

Monitoring!!!

Dear,

Is it possible to add the monitor tools? i don't know how to see each miner hash rate on the proxy.

Cheers

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.