xmrig / xmrig-proxy

Monero (XMR) Stratum protocol proxy
https://xmrig.com/proxy
GNU General Public License v3.0
616 stars 338 forks source link

cn/r won't proxy #313

Open xsoft opened 5 years ago

xsoft commented 5 years ago

Hello, with 2.14.0 on Linux I can't propper proxy cn/r. Please note that this setup worked for xmr_v7, xmr_v8, xmr_heavy, xmr_heaven. But not now for "r" variant.

When miners with no login and no password are sent to this xmr-rig-proxy 2.14.0 it wouldn't get any accepts, just rejects and ranrom errors (share above target, job not found or others). Ive tried Nicehash (priamry target now) and also two non-nicehash pools (cn/r direct).

I've tried all kind of config variants but no success. Now Im using:

{
    "access-log-file": "/var/log/xmr_proxy_access.log",
    "algo": "cn/r",
    "api": {
        "port": 0,
        "access-token": null,
        "worker-id": null,
        "ipv6": false,
        "restricted": true
    },
    "background": false,
    "bind": [
        "0.0.0.0:8823",
        "0.0.0.0:5523"
    ],
    "mode": "simple",
    "colors": true,
    "donate-level": 0,
    "log-file": "/var/log/xmr_proxy.log",
    "pools": [
        {
            "url": "cryptonightr.eu.nicehash.com:3375",
            "user": "3K4xxxxxxxxxxxxxxxxxxxxxxxxxxxx",
            "pass": "test",
            "keepalive": true,
            "variant": "r",
            "height": "",
            "tls": false,
            "tls-fingerprint": null
        }
    ],
    "retries": 2,
    "retry-pause": 10,
    "syslog": false,
    "verbose": true,
    "workers": "user"
}

Ive tried:

"algo": "cn/r"
"algo": "cn"
"mode": "simple"
"mode": "nicehash"
"variant": "r"
"variant": ""
"variant": 8

... same results. Miners are set to use nicehash, but have none login and password. When miners are set directly to xmr-proxy WITH login and password (unique worker name), it somehow worked. Its kinda strange. Because proxy rewrites all login and passwords to own one and sends them to nicehash.

Ive tried also 2.14.1 version but with same result. Im not on 2.14.0. Please note that this setup worked with previous algos quite well. It is strange that now its struggles. Im suspection some bug on proxy side within name rewrites for "r" variant. Turning on debug mode ("d" key) whos some strange utf chars at logins at xml.

Output follows:

[xxx xmrig-proxy-2.14.0]# ./cmd-line-start2.sh
 * ABOUT        xmrig-proxy/2.14.0 gcc/5.4.0
 * LIBS         libuv/1.24.1 OpenSSL/1.1.1a microhttpd/0.9.62
 * MODE         simple
 * ALGO         cryptonight/r
 * POOL #1      cryptonightr.eu.nicehash.com:3375 variant r
 * BIND #1      0.0.0.0:8823
 * BIND #2      0.0.0.0:5523
 * COMMANDS     hashrate, connections, verbose, workers
[2019-03-23 09:21:08] #000 use pool cryptonightr.eu.nicehash.com:3375  123.xx.xx.45
[2019-03-23 09:21:08] #000 new job from cryptonightr.eu.nicehash.com:3375 diff 100001 algo cn/r height 1796899
[2019-03-23 09:21:08] #001 use pool cryptonightr.eu.nicehash.com:3375  123.xx.xx.45
[2019-03-23 09:21:08] #001 new job from cryptonightr.eu.nicehash.com:3375 diff 100001 algo cn/r height 1796899
[2019-03-23 09:21:10] #002 use pool cryptonightr.eu.nicehash.com:3375  123.xx.xx.45
[2019-03-23 09:21:10] #002 new job from cryptonightr.eu.nicehash.com:3375 diff 100001 algo cn/r height 1796899
[2019-03-23 09:21:10] #003 use pool cryptonightr.eu.nicehash.com:3375  123.xx.xx.45
[2019-03-23 09:21:10] #003 new job from cryptonightr.eu.nicehash.com:3375 diff 100001 algo cn/r height 1796899
...
[2019-03-23 09:21:18] #000 rejected (0/1+0) diff 100001 ip 222.xx.xx.22 "Job not found." (41 ms)

[2019-03-23 09:21:31] #018 rejected (0/6+0) diff 100001 ip 222.xx.xx.22 "Share above target." (151 ms)
[2019-03-23 09:21:31] #015 rejected (0/7+0) diff 100001 ip 222.xx.xx.22 "Share above target." (145 ms)
[2019-03-23 09:22:17] Ctrl+C received, exiting
xmrig commented 5 years ago

Please update proxy to 2.14.1 it already in master branch, just forgot tag a release. Thank you.

xsoft commented 5 years ago

Upgraded to 2.14.1 Same results :(

./cmd-line-start2.sh
 * ABOUT        xmrig-proxy/2.14.1 gcc/5.4.0
 * LIBS         libuv/1.24.1 OpenSSL/1.1.1a microhttpd/0.9.62
 * MODE         simple
 * ALGO         cryptonight/r
 * POOL #1      cryptonightr.eu.nicehash.com:3375 variant r
 * BIND #1      0.0.0.0:8823
 * BIND #2      0.0.0.0:5523
 * COMMANDS     hashrate, connections, verbose, workers
...
[2019-03-23 13:30:50] #008 rejected (0/4+0) diff 100001 ip 123.xx.xx.45 "Job not found." (41 ms)
...
[2019-03-23 13:30:55] #036 use pool cryptonightr.eu.nicehash.com:3375  172.65.218.27
[2019-03-23 13:30:55] #036 new job from cryptonightr.eu.nicehash.com:3375 diff 100001 algo cn/r height 1797016
[2019-03-23 13:30:57] #029 rejected (0/5+0) diff 100001 ip 123.xx.xx.45 "Share above target." (140 ms)
[2019-03-23 13:30:57] #029 rejected (0/6+0) diff 100001 ip 123.xx.xx.45 "Share above target." (129 ms)
[2019-03-23 13:30:57] #037 use pool cryptonightr.eu.nicehash.com:3375  172.65.218.27
[2019-03-23 13:30:57] #037 new job from cryptonightr.eu.nicehash.com:3375 diff 100001 algo cn/r height 1797016
[2019-03-23 13:30:58] #038 use pool cryptonightr.eu.nicehash.com:3375  172.65.218.27
[2019-03-23 13:30:58] #038 new job from cryptonightr.eu.nicehash.com:3375 diff 100001 algo cn/r height 1797016
[2019-03-23 13:31:00] #007 rejected (0/7+0) diff 100001 ip 123.xx.xx.45 "Share above target." (144 ms)
[2019-03-23 13:31:02] #039 use pool cryptonightr.eu.nicehash.com:3375  172.65.218.27
[2019-03-23 13:31:02] #039 new job from cryptonightr.eu.nicehash.com:3375 diff 100001 algo cn/r height 1797016
[2019-03-23 13:31:02] #007 rejected (0/8+0) diff 100001 ip 123.xx.xx.45 "Share above target." (119 ms)
[2019-03-23 13:31:02] #012 rejected (0/9+0) diff 100001 ip 123.xx.xx.45 "Share above target." (126 ms)
[2019-03-23 13:31:03] #040 use pool cryptonightr.eu.nicehash.com:3375  172.65.218.27
[2019-03-23 13:31:03] #040 new job from cryptonightr.eu.nicehash.com:3375 diff 100001 algo cn/r height 1797016
[2019-03-23 13:31:04] #030 rejected (0/10+0) diff 100001 ip 123.xx.xx.45 "Share above target." (138 ms)
[2019-03-23 13:31:04] #031 rejected (0/11+0) diff 100001 ip 123.xx.xx.45 "Share above target." (139 ms)
[2019-03-23 13:31:05] #012 rejected (0/12+0) diff 100001 ip 123.xx.xx.45 "Share above target." (129 ms)
[2019-03-23 13:31:08] #039 rejected (0/13+0) diff 100001 ip 123.xx.xx.45 "Share above target." (119 ms)
[2019-03-23 13:31:09] #013 rejected (0/14+0) diff 100001 ip 123.xx.xx.45 "Share above target." (128 ms)
[2019-03-23 13:31:10] #008 rejected (0/15+0) diff 100001 ip 123.xx.xx.45 "Share above target." (136 ms)
[2019-03-23 13:31:10] #001 rejected (0/16+0) diff 100001 ip 123.xx.xx.45 "Share above target." (136 ms)
[2019-03-23 13:31:12] #008 rejected (0/17+0) diff 100001 ip 123.xx.xx.45 "Share above target." (220 ms)
[2019-03-23 13:31:13] #029 rejected (0/18+0) diff 100001 ip 123.xx.xx.45 "Share above target." (132 ms)
[2019-03-23 13:31:13] #023 rejected (0/19+0) diff 100001 ip 123.xx.xx.45 "Share above target." (122 ms)
[2019-03-23 13:31:15] #030 rejected (0/20+0) diff 100001 ip 123.xx.xx.45 "Share above target." (133 ms)
[2019-03-23 13:31:15] #013 rejected (0/21+0) diff 100001 ip 123.xx.xx.45 "Share above target." (128 ms)

----------------------

Another config. (direct pool)
[2019-03-23 13:33:43] #019 new job from pool.minexmr.com:7777 diff 400015 algo cn/r height 1797018
[2019-03-23 13:33:45] #009 rejected (0/1+0) diff 400015 ip 123.xx.xx.45 "Invalid Share" (106 ms)
[2019-03-23 13:33:47] #020 use pool pool.minexmr.com:7777  37.59.55.60
[2019-03-23 13:33:47] #020 new job from pool.minexmr.com:7777 diff 400015 algo cn/r height 1797018
[2019-03-23 13:33:48] #021 use pool pool.minexmr.com:7777  176.9.53.68
[2019-03-23 13:33:48] #021 new job from pool.minexmr.com:7777 diff 400015 algo cn/r height 1797018
[2019-03-23 13:33:49] #010 rejected (0/2+0) diff 400015 ip 123.xx.xx.45 "Invalid Share" (122 ms)
[2019-03-23 13:33:49] #022 use pool pool.minexmr.com:7777  37.59.44.93
[2019-03-23 13:33:49] #022 new job from pool.minexmr.com:7777 diff 400015 algo cn/r height 1797018
[2019-03-23 13:33:50] #023 use pool pool.minexmr.com:7777  37.187.154.79
[2019-03-23 13:33:50] #023 new job from pool.minexmr.com:7777 diff 400015 algo cn/r height 1797018
[2019-03-23 13:33:50] #024 use pool pool.minexmr.com:7777  37.59.44.193
[2019-03-23 13:33:50] #024 new job from pool.minexmr.com:7777 diff 400015 algo cn/r height 1797018
[2019-03-23 13:33:52] #016 rejected (0/3+0) diff 400015 ip 123.xx.xx.45 "Invalid Share" (88 ms)
[2019-03-23 13:33:55] #025 use pool pool.minexmr.com:7777  91.121.2.76
[2019-03-23 13:33:55] #025 new job from pool.minexmr.com:7777 diff 400015 algo cn/r height 1797018
[2019-03-23 13:33:55] #026 use pool pool.minexmr.com:7777  176.9.53.68
[2019-03-23 13:33:55] #026 new job from pool.minexmr.com:7777 diff 400015 algo cn/r height 1797018
[2019-03-23 13:33:55] #027 use pool pool.minexmr.com:7777  37.59.55.60
[2019-03-23 13:33:55] #027 new job from pool.minexmr.com:7777 diff 400015 algo cn/r height 1797018
[2019-03-23 13:33:55] #006 rejected (0/4+0) diff 400015 ip 123.xx.xx.45 "Invalid Share" (99 ms)
[2019-03-23 13:33:55] #028 use pool pool.minexmr.com:7777  176.9.53.68
[2019-03-23 13:33:55] #028 new job from pool.minexmr.com:7777 diff 400015 algo cn/r height 1797018
[2019-03-23 13:33:55] #029 use pool pool.minexmr.com:7777  37.59.44.93
[2019-03-23 13:33:55] #029 new job from pool.minexmr.com:7777 diff 400015 algo cn/r height 1797018
[2019-03-23 13:33:57] #030 use pool pool.minexmr.com:7777  37.59.44.193
[2019-03-23 13:33:57] #030 new job from pool.minexmr.com:7777 diff 400015 algo cn/r height 1797018
[2019-03-23 13:34:01] #001 rejected (0/5+0) diff 400015 ip 123.xx.xx.45 "Invalid Share" (107 ms)
[2019-03-23 13:34:02] #031 use pool pool.minexmr.com:7777  176.9.53.68
[2019-03-23 13:34:02] #031 new job from pool.minexmr.com:7777 diff 400015 algo cn/r height 1797018
[2019-03-23 13:34:02] #014 rejected (0/6+0) diff 400015 ip 123.xx.xx.45 "Invalid Share" (108 ms)
[2019-03-23 13:34:03] #020 rejected (0/7+0) diff 400015 ip 123.xx.xx.45 "Invalid Share" (100 ms)
[2019-03-23 13:34:04] #007 rejected (0/8+0) diff 400015 ip 123.xx.xx.45 "Invalid Share" (116 ms)
[2019-03-23 13:34:05] #032 use pool pool.minexmr.com:7777  37.187.154.79
[2019-03-23 13:34:05] #032 new job from pool.minexmr.com:7777 diff 400015 algo cn/r height 1797018
[2019-03-23 13:34:08] #019 rejected (0/9+0) diff 400015 ip 123.xx.xx.45 "Invalid Share" (94 ms)
[2019-03-23 13:34:09] #019 rejected (0/10+0) diff 400015 ip 123.xx.xx.45 "Invalid Share" (96 ms)
[2019-03-23 13:34:11] Ctrl+C received, exiting
xmrig commented 5 years ago

What miner do you use? not all miners support algorithm negotiation, so you must specify proper algorithm on miner side. Thank you.

xsoft commented 5 years ago

xmr-stak 2.10.2 (now with "cn/r" setting). Like I wrote, when connected to proxy directly with specific login/pass, it worker and Ive got accepts. But without its not going thru.

xmrig commented 5 years ago

I don't see any issues with xmr-stak https://i.imgur.com/TZSylih.png Please rebuild proxy with cmake option -DWITH_DEBUG_LOG=ON it will enable verbose network log and show output when share rejected. Thank you.

xsoft commented 5 years ago

I've tried this with recompiled with DEBUG ON, still same result :(

root@xxx:2.14.1-debug# ./xmrig-proxy
 * ABOUT        xmrig-proxy/2.14.1 gcc/7.3.0
 * LIBS         libuv/1.18.0 OpenSSL/1.1.0g
 * MODE         simple
 * ALGO         cryptonight/r
 * POOL #1      cryptonightr.eu.nicehash.com:3375 variant r
[2019-03-25 07:52:11] POOLS --------------------------------------------------------------------
[2019-03-25 07:52:11] url:       cryptonightr.eu.nicehash.com:3375
[2019-03-25 07:52:11] host:      cryptonightr.eu.nicehash.com
[2019-03-25 07:52:11] port:      3375
[2019-03-25 07:52:11] user:      3K4********************************
[2019-03-25 07:52:11] pass:      test
[2019-03-25 07:52:11] rig-id     (null)
[2019-03-25 07:52:11] algo:      cryptonight/r
[2019-03-25 07:52:11] nicehash:  0
[2019-03-25 07:52:11] keepAlive: 60
[2019-03-25 07:52:11] --------------------------------------------------------------------------
 * BIND #1      0.0.0.0:8823
 * BIND #2      0.0.0.0:5523
 * COMMANDS     hashrate, connections, verbose, workers
[2019-03-25 07:52:30] [123.xx.xx.45] received (122 bytes): "{"method":"login","params":{"login":"","pass":"","rigid":"","agent":"xmr-stak/2.10.2/1fa4626/master/lin/amd/999"},"id":1}"
[2019-03-25 07:52:30] [cryptonightr.eu.nicehash.com:3375] state: "host-lookup"
[2019-03-25 07:52:31] [cryptonightr.eu.nicehash.com:3375] state: "connecting"
[2019-03-25 07:52:31] [cryptonightr.eu.nicehash.com:3375] state: "connected"
[2019-03-25 07:52:31] [cryptonightr.eu.nicehash.com:3375] send (195 bytes): "{"id":1,"jsonrpc":"2.0","method":"login","params":{"login":"3K4********************************","pass":"test","agent":"xmrig-proxy/2.14.1 (Linux x86_64) libuv/1.18.0 gcc/7.3.0","algo":["cn/r"]}}

...

[2019-03-25 07:54:21] #000 new job from cryptonightr.eu.nicehash.com:3375 diff 100001 algo cn/r height 1798324
[2019-03-25 07:54:21] [123.xx.xx.45] send (288 bytes): "{"jsonrpc":"2.0","method":"job","params":{"blob":"0b0bad92e2e40567a5c2208f003ea481b73382a542c49e3f0c173c7b18859aded9b1a80df6fc0b0000000fd2b0a187c21ec0054021ea55ccc941731c2d8968149f113d057085f2cd7a13f004","job_id":"000001eb61a0c122000","target":"c5a70000","algo":"cn/r","height":1798324}}
"
[2019-03-25 07:54:32] [123.xx.xx.45] received (331 bytes): "{"method":"submit","params":{"id":"2650dc15-1730-4d4f-b5d3-61492f4576d6","job_id":"000001eb61a0c122000","nonce":"6b4e000f","result":"35d6e0e4b32fb2bedff13956527cf6fc7753d1545061e2d1566fe45a504e0000","algo":"cryptonight_r","base_algo":"cryptonight_r","iterations":"0x00080000","scratchpad":"0x00200000","mask":"0x001ffff0"},"id":1}"
[2019-03-25 07:54:32] [cryptonightr.eu.nicehash.com:3375] send (200 bytes): "{"id":7,"jsonrpc":"2.0","method":"submit","params":{"id":"223197304378088","job_id":"000001eb61a0c122","nonce":"6b4e000f","result":"35d6e0e4b32fb2bedff13956527cf6fc7753d1545061e2d1566fe45a504e0000"}}
"
[2019-03-25 07:54:32] [cryptonightr.eu.nicehash.com:3375] received (76 bytes): "{"id":7,"jsonrpc":"2.0","error":{"code":1,"message":"Share above target."}}"
[2019-03-25 07:54:32] #000 rejected (0/1+0) diff 100001 ip 123.xx.xx.45 "Share above target." (120 ms)
[2019-03-25 07:54:32] [123.xx.xx.45] send (77 bytes): "{"id":1,"jsonrpc":"2.0","error":{"code":-1,"message":"Share above target."}}
"
[2019-03-25 07:54:44] [123.xx.xx.45] received (331 bytes): "{"method":"submit","params":{"id":"2650dc15-1730-4d4f-b5d3-61492f4576d6","job_id":"000001eb61a0c122000","nonce":"d8d2020f","result":"a628a1171b1c8845b16540e149c0397892dd496161b90414648b473557380000","algo":"cryptonight_r","base_algo":"cryptonight_r","iterations":"0x00080000","scratchpad":"0x00200000","mask":"0x001ffff0"},"id":1}"
[2019-03-25 07:54:44] [cryptonightr.eu.nicehash.com:3375] send (200 bytes): "{"id":8,"jsonrpc":"2.0","method":"submit","params":{"id":"223197304378088","job_id":"000001eb61a0c122","nonce":"d8d2020f","result":"a628a1171b1c8845b16540e149c0397892dd496161b90414648b473557380000"}}
"
[2019-03-25 07:54:44] [cryptonightr.eu.nicehash.com:3375] received (76 bytes): "{"id":8,"jsonrpc":"2.0","error":{"code":1,"message":"Share above target."}}"
[2019-03-25 07:54:44] #000 rejected (0/2+0) diff 100001 ip 123.xx.xx.45 "Share above target." (125 ms)
[2019-03-25 07:54:44] [123.xx.xx.45] send (77 bytes): "{"id":1,"jsonrpc":"2.0","error":{"code":-1,"message":"Share above target."}}
xmrig commented 5 years ago

@psychocrypt please take a look, I have no idea how it happen, but miner sent wrong hash.

blob + nonce

0b0bad92e2e40567a5c2208f003ea481b73382a542c49e3f0c173c7b18859aded9b1a80df6fc0b0000000fd2b0a187c21ec0054021ea55ccc941731c2d8968149f113d057085f2cd7a13f004
                                                                              6b4e000f
0b0bad92e2e40567a5c2208f003ea481b73382a542c49e3f0c173c7b18859aded9b1a80df6fc0b6b4e000fd2b0a187c21ec0054021ea55ccc941731c2d8968149f113d057085f2cd7a13f004                                                                              

For this input and height 1798324 expected hash: e8f4c14a3cda8b3e7462b8e3a7f6b4f97bb4a35adf4faa102e5b4f179525ec56 but miner sent 35d6e0e4b32fb2bedff13956527cf6fc7753d1545061e2d1566fe45a504e0000.

psychocrypt commented 5 years ago

Thanks for the notification I will have a look into this issue.

xsoft commented 5 years ago

Correct direct way with connection miner to proxy (with propper login, pass, rig id ...). This one get ACCEPTS. (Debug ON)

MINER
./xmr-stak --currency cryptonight_r --use-nicehash -u user123 -p test -o 46.xxx.xxx.xxx:8823

PROXY
 ./xmrig-proxy
 * ABOUT        xmrig-proxy/2.14.1 gcc/7.3.0
 * LIBS         libuv/1.18.0 OpenSSL/1.1.0g
 * MODE         simple
 * ALGO         cryptonight/r
 * POOL #1      cryptonightr.eu.nicehash.com:3375 variant r
[2019-03-25 08:22:45] POOLS --------------------------------------------------------------------
[2019-03-25 08:22:45] url:       cryptonightr.eu.nicehash.com:3375
[2019-03-25 08:22:45] host:      cryptonightr.eu.nicehash.com
[2019-03-25 08:22:45] port:      3375
[2019-03-25 08:22:45] user:      3Kxxxxxxxxxxxxxxxxxxxxxxxx
[2019-03-25 08:22:45] pass:      test
[2019-03-25 08:22:45] rig-id     (null)
[2019-03-25 08:22:45] algo:      cryptonight/r
[2019-03-25 08:22:45] nicehash:  0
[2019-03-25 08:22:45] keepAlive: 60
[2019-03-25 08:22:45] --------------------------------------------------------------------------
 * BIND #1      0.0.0.0:8824
 * BIND #2      0.0.0.0:5524
 * COMMANDS     hashrate, connections, verbose, workers
[2019-03-25 08:23:08] [123.xx.xx.45] received (133 bytes): "{"method":"login","params":{"login":"user123","pass":"test","rigid":"","agent":"xmr-stak/2.10.2/1fa4626/master/lin/amd/999"},"id":1}"
[2019-03-25 08:23:08] [cryptonightr.eu.nicehash.com:3375] state: "host-lookup"
[2019-03-25 08:23:08] [cryptonightr.eu.nicehash.com:3375] state: "connecting"
[2019-03-25 08:23:08] [cryptonightr.eu.nicehash.com:3375] state: "connected"
[2019-03-25 08:23:08] [cryptonightr.eu.nicehash.com:3375] send (195 bytes): "{"id":1,"jsonrpc":"2.0","method":"login","params":{"login":"3Kxxxxxxxxxxxxxxxxxxxxxxxx","pass":"test","agent":"xmrig-proxy/2.14.1 (Linux x86_64) libuv/1.18.0 gcc/7.3.0","algo":["cn/r"]}}
"
[2019-03-25 08:23:08] [cryptonightr.eu.nicehash.com:3375] received (321 bytes): "{"jsonrpc":"2.0","id":1,"error":null,"result":{"id":"748143552689295","status":"OK","job":{"job_id":"000001eb61a6bbf9","blob":"0b0b9b9fe2e4057c3f14ad2bbbecea5854468da3671912c7f131a24b4396197d303444e4bc70dc00000038580efb84e7c5731fce52b3bfac1f11a3fb74b7f89023eff5b33bed6837575d3603","target":"c5a70000","height":1798342}}}"
[2019-03-25 08:23:08] #000 use pool cryptonightr.eu.nicehash.com:3375  172.65.218.27
[2019-03-25 08:23:08] #000 new job from cryptonightr.eu.nicehash.com:3375 diff 100001 algo cn/r height 1798342
[2019-03-25 08:23:08] [123.xx.xx.45] send (381 bytes): "{"jsonrpc":"2.0","id":1,"error":null,"result":{"id":"67e6f80b-eadc-4fd9-9e06-1379ec38f484","job":{"blob":"0b0b9b9fe2e4057c3f14ad2bbbecea5854468da3671912c7f131a24b4396197d303444e4bc70dc00000038580efb84e7c5731fce52b3bfac1f11a3fb74b7f89023eff5b33bed6837575d3603","job_id":"000001eb61a6bbf9000","target":"c5a70000","algo":"cn/r","height":1798342},"extensions":["algo"],"status":"OK"}}
"
[2019-03-25 08:23:16] [cryptonightr.eu.nicehash.com:3375] received (271 bytes): "{"params":{"job_id":"000001eb61a6d3af","blob":"0b0bf49fe2e40560966d6342a786d84d21a7297c44bb9dd00b8ad9fe40f2b6ffbcd1af90481a55000000382b3a59c2df899d1bac8d80d8f18f2bf8a990c21f670b4781b244cc9a26efa14401","target":"c5a70000","height":1798343},"jsonrpc":"2.0","method":"job"}"
[2019-03-25 08:23:16] #000 new job from cryptonightr.eu.nicehash.com:3375 diff 100001 algo cn/r height 1798343
[2019-03-25 08:23:16] [123.xx.xx.45] send (288 bytes): "{"jsonrpc":"2.0","method":"job","params":{"blob":"0b0bf49fe2e40560966d6342a786d84d21a7297c44bb9dd00b8ad9fe40f2b6ffbcd1af90481a55000000382b3a59c2df899d1bac8d80d8f18f2bf8a990c21f670b4781b244cc9a26efa14401","job_id":"000001eb61a6d3af000","target":"c5a70000","algo":"cn/r","height":1798343}}
"
[2019-03-25 08:23:45] 0.00 kH/s, shares: 0/0 +0, upstreams: 1, miners: 1 (max 1) +1/-0
[2019-03-25 08:23:49] [123.xx.xx.45] received (331 bytes): "{"method":"submit","params":{"id":"67e6f80b-eadc-4fd9-9e06-1379ec38f484","job_id":"000001eb61a6d3af000","nonce":"37080138","result":"e58cad87789e0776c73fcff3fcaa4dab277b6ad66efe3965f4286cd5dc570000","algo":"cryptonight_r","base_algo":"cryptonight_r","iterations":"0x00080000","scratchpad":"0x00200000","mask":"0x001ffff0"},"id":1}"
[2019-03-25 08:23:49] [cryptonightr.eu.nicehash.com:3375] send (200 bytes): "{"id":2,"jsonrpc":"2.0","method":"submit","params":{"id":"748143552689295","job_id":"000001eb61a6d3af","nonce":"37080138","result":"e58cad87789e0776c73fcff3fcaa4dab277b6ad66efe3965f4286cd5dc570000"}}
"
[2019-03-25 08:23:49] [cryptonightr.eu.nicehash.com:3375] received (63 bytes): "{"id":2,"jsonrpc":"2.0","error":null,"result":{"status":"OK"}}"
[2019-03-25 08:23:49] #000 accepted (1/0+0) diff 100001 ip 123.xx.xx.45 (129 ms)
[2019-03-25 08:23:49] [123.xx.xx.45] send (63 bytes): "{"id":1,"jsonrpc":"2.0","error":null,"result":{"status":"OK"}}
"

But in describted way (no accepts, just errors, and inv. share):

:{"blob":"0b0bc59ae2e405ba3a51f86e38c8ee09a40ba92a41e5797aec07c313c654727c95c12cecf835f9000000916e3547439fa5e7069b3171e38965b59f904fa5fdfd03ea0af502f04d4e05a82c04","job_id":"000001eb61a49d3e910","target":"c5a70000","algo":"cn/r","height":1798333},"extensions":["algo","nicehash"],"status":"OK"}}
"
[2019-03-25 08:12:51] [debug] login <Miner id=44, ip=193.xx.xx.xx>, <Request login=x1, agent=xmr-stak/2.10.2/1fa4626/master/lin/amd/999>
[2019-03-25 08:12:52] [cryptonightr.eu.nicehash.com:3375] send (82 bytes): "{"id":26,"jsonrpc":"2.0","method":"keepalived","params":{"id":"307036319561510"}}
"
[2019-03-25 08:12:52] [cryptonightr.eu.nicehash.com:3375] received (271 bytes): "{"params":{"job_id":"000001eb61a4ada8","blob":"0b0bc59ae2e405ba3a51f86e38c8ee09a40ba92a41e5797aec07c313c654727c95c12cecf835f9000000b14f72c02f4dbdce4cd101a808c7e0d0696e4bb0848b41f5b9432542543e5c7a1f04","target":"8b4f0100","height":1798333},"jsonrpc":"2.0","method":"job"}"
[2019-03-25 08:12:52] #000 new job from cryptonightr.eu.nicehash.com:3375 diff 50000 algo cn/r height 1798333
[2019-03-25 08:12:52] [193.xx.xx.xx] send (288 bytes): "{"jsonrpc":"2.0","method":"job","params":{"blob":"0b0bc59ae2e405ba3a51f86e38c8ee09a40ba92a41e5797aec07c313c654727c95c12cecf835f9000000914f72c02f4dbdce4cd101a808c7e0d0696e4bb0848b41f5b9432542543e5c7a1f04","job_id":"000001eb61a4ada8910","target":"8b4f0100","algo":"cn/r","height":1798333}}
"
[2019-03-25 08:12:53] [debug] close <Miner id=44, ip=193.xx.xx.xx>
[2019-03-25 08:12:54] [cryptonightr.eu.nicehash.com:3375] received (271 bytes): "{"params":{"job_id":"000001eb61a4b629","blob":"0b0b869be2e405ba3a51f86e38c8ee09a40ba92a41e5797aec07c313c654727c95c12cecf835f9000000b1c8cab25902c2343484f928141fb4650c5b98f89d580bf3b8b0af536b96bcc97a05","target":"8b4f0100","height":1798333},"jsonrpc":"2.0","method":"job"}"
[2019-03-25 08:12:54] #000 new job from cryptonightr.eu.nicehash.com:3375 diff 50000 algo cn/r height 1798333
[2019-03-25 08:12:55] [debug] connection <Miner id=45, ip=193.xx.xx.xx> via port: 5523
[2019-03-25 08:12:55] [193.xx.xx.xx] received (128 bytes): "{"method":"login","params":{"login":"x1","pass":"x3","rigid":"x2","agent":"xmr-stak/2.10.2/1fa4626/master/lin/amd/999"},"id":1}"
[2019-03-25 08:12:55] [193.xx.xx.xx] send (392 bytes): "{"jsonrpc":"2.0","id":1,"error":null,"result":{"id":"7fcb803a-f294-4bfa-9a1e-fe12dec97c41","job":{"blob":"0b0b869be2e405ba3a51f86e38c8ee09a40ba92a41e5797aec07c313c654727c95c12cecf835f900000091c8cab25902c2343484f928141fb4650c5b98f89d580bf3b8b0af536b96bcc97a05","job_id":"000001eb61a4b629910","target":"8b4f0100","algo":"cn/r","height":1798333},"extensions":["algo","nicehash"],"status":"OK"}}
"
[2019-03-25 08:12:55] [debug] login <Miner id=45, ip=193.xx.xx.xx>, <Request login=x1, agent=xmr-stak/2.10.2/1fa4626/master/lin/amd/999>
[2019-03-25 08:12:57] [debug] close <Miner id=45, ip=193.xx.xx.xx>

===========

[2019-03-25 08:06:03] [cryptonightr.eu.nicehash.com:3375] state: "host-lookup"
[2019-03-25 08:06:03] [debug] login <Miner id=39, ip=193.xx.xx.xx>, <Request login=x1, agent=xmr-stak/2.10.2/1fa4626/master/lin/amd/999>
[2019-03-25 08:06:03] [cryptonightr.eu.nicehash.com:3375] state: "connecting"
[2019-03-25 08:06:03] [cryptonightr.eu.nicehash.com:3375] state: "connected"
[2019-03-25 08:06:03] [cryptonightr.eu.nicehash.com:3375] send (195 bytes): "{"id":1,"jsonrpc":"2.0","method":"login","params":{"login":"3K4xxxxxxxxxxxxxxxxxxxxxxxxxxx","pass":"test","agent":"xmrig-proxy/2.14.1 (Linux x86_64) libuv/1.18.0 gcc/7.3.0","algo":["cn/r"]}}
"
[2019-03-25 08:06:03] [cryptonightr.eu.nicehash.com:3375] received (321 bytes): "{"jsonrpc":"2.0","id":1,"error":null,"result":{"id":"421970933313569","status":"OK","job":{"job_id":"000001eb61a36766","blob":"0b0bd897e2e40522420992116efef6babd279b0a082df151776961fb4492469ce2b98918d5db960000006e801685d9e11e67fafff85c220f5b75548900f1bd7172e75bee9cfc533e8d3b6d09","target":"c5a70000","height":1798330}}}"
[2019-03-25 08:06:03] #038 use pool cryptonightr.eu.nicehash.com:3375  172.65.218.27
[2019-03-25 08:06:03] #038 new job from cryptonightr.eu.nicehash.com:3375 diff 100001 algo cn/r height 1798330
[2019-03-25 08:06:03] [193.xx.xx.xx] send (381 bytes): "{"jsonrpc":"2.0","id":1,"error":null,"result":{"id":"e48f1cf6-4b3f-448f-8970-b3221d1e602b","job":{"blob":"0b0bd897e2e40522420992116efef6babd279b0a082df151776961fb4492469ce2b98918d5db960000006e801685d9e11e67fafff85c220f5b75548900f1bd7172e75bee9cfc533e8d3b6d09","job_id":"000001eb61a36766000","target":"c5a70000","algo":"cn/r","height":1798330},"extensions":["algo"],"status":"OK"}}
"
[2019-03-25 08:06:04] [cryptonightr.eu.nicehash.com:3375] received (271 bytes): "{"params":{"job_id":"000001eb61a37ca1","blob":"0b0bec97e2e405fd44dfcb1fc701e4f8a689243fa47ac4aead1ff6059223b6c5da678317b3b4750000006e1daeeea348a14e5810e26227aaf4163bd873f2c9eb1d3f1ab0eee0ed4cdb0f3507","target":"c5a70000","height":1798331},"jsonrpc":"2.0","method":"job"}"
[2019-03-25 08:06:04] #038 new job from cryptonightr.eu.nicehash.com:3375 diff 100001 algo cn/r height 1798331
[2019-03-25 08:06:04] [193.xx.xx.xx] send (288 bytes): "{"jsonrpc":"2.0","method":"job","params":{"blob":"0b0bec97e2e405fd44dfcb1fc701e4f8a689243fa47ac4aead1ff6059223b6c5da678317b3b4750000006e1daeeea348a14e5810e26227aaf4163bd873f2c9eb1d3f1ab0eee0ed4cdb0f3507","job_id":"000001eb61a37ca1000","target":"c5a70000","algo":"cn/r","height":1798331}}
"
psychocrypt commented 5 years ago

Could you please upload your pools.txt which creates wrong hashes.

xsoft commented 5 years ago

There is none pools.txt for this option. Its done by changing URL at source code: https://github.com/fireice-uk/xmr-stak/blob/master/xmrstak/misc/executor.cpp#L581 and points it to proxy IP/port. (and by forcing https://github.com/fireice-uk/xmr-stak/blob/master/xmrstak/donate-level.hpp#L19 to "99.9" it can be tested instantly to connect to proxy)

Wacholek commented 5 years ago

I have other problem but related to this issue. Using mineXMR pool where yoi can set your own difficulty on port 3333. WALLET.workerID+DIFF Miner used: xmr-skat 2.10.0.

When I connect miner to the poll directly I can set difficulty 20000, but when I connect xmrig-proxy using the same WALLET.workerID+DIFF I can go as low as 400000 no matter what I write in DIFF section. Any idees? ` * ABOUT xmrig-proxy/2.15.0-beta MSVC/2017

[2019-03-27 15:55:35] 6.67 kH/s, shares: 1/0 +1, upstreams: 1, miners: 1 (max 1) +0/-0 [2019-03-27 15:55:38] #000 accepted (2/0+0) diff 400015 ip 172.16.66.200 (48 ms)

[2019-03-27 15:56:35] 6.67 kH/s, shares: 2/0 +1, upstreams: 1, miners: 1 (max 1) +0/-0 [2019-03-27 15:56:43] #000 new job from pool.minexmr.com:3333 diff 400015 algo c n/r height 1800002 [2019-03-27 15:57:35] 0.00 kH/s, shares: 2/0 +0, upstreams: 1, miners: 1 (max 1) +0/-0 `

xmrig commented 5 years ago

It mentioned on this page https://minexmr.com/#getting_started at the end of Getting Started. Thank you.

Wacholek commented 5 years ago

Works great. Thanks you.

xsoft commented 5 years ago

Note: This bug is still there. Tried today on version 2.15.3-beta (for three types of cn_r algo: Monero @cn/r, Sumocoin @cn/r, nicehash @cn/r).

xsoft commented 5 years ago

Note: Still threre (even with last version xmrig-proxy-2.14.4-xenial-x64)

psychocrypt commented 5 years ago

Please post the pools.txt file