Added workaround for nicehash.com if you use cryptonightv7.<region>.nicehash.com option variant=1 will be set automatically.

This commit is contained in:
XMRig 2018-04-22 12:57:37 +07:00
parent 90a09f20b3
commit 38874fbb0a
2 changed files with 5 additions and 0 deletions

View file

@ -1,6 +1,7 @@
# v2.5.3 # v2.5.3
- Fixed critical bug, in some cases miner was can't recovery connection and switch to failover pool, version 2.5.2 affected. If you use v2.6.0-beta3 this issue doesn't concern you. - Fixed critical bug, in some cases miner was can't recovery connection and switch to failover pool, version 2.5.2 affected. If you use v2.6.0-beta3 this issue doesn't concern you.
- [#499](https://github.com/xmrig/xmrig/issues/499) IPv6 support disabled for internal HTTP API. - [#499](https://github.com/xmrig/xmrig/issues/499) IPv6 support disabled for internal HTTP API.
- Added workaround for nicehash.com if you use `cryptonightv7.<region>.nicehash.com` option `variant=1` will be set automatically.
# v2.5.2 # v2.5.2
- [#448](https://github.com/xmrig/xmrig/issues/478) Fixed broken reconnect. - [#448](https://github.com/xmrig/xmrig/issues/478) Fixed broken reconnect.

View file

@ -180,6 +180,10 @@ void Url::adjust(int algo)
if (strstr(m_host, ".nicehash.com")) { if (strstr(m_host, ".nicehash.com")) {
m_keepAlive = false; m_keepAlive = false;
m_nicehash = true; m_nicehash = true;
if (strstr(m_host, "cryptonightv7.")) {
m_variant = xmrig::VARIANT_V1;
}
} }
if (strstr(m_host, ".minergate.com")) { if (strstr(m_host, ".minergate.com")) {