Force variant 1 if no algorithm specified.

This commit is contained in:
XMRig 2018-05-04 03:19:42 +07:00
parent c4a2dcc1fb
commit 298cf37121

View file

@ -221,6 +221,12 @@ void Pool::adjust(xmrig::Algo algorithm)
if (!m_algorithm.isValid()) {
m_algorithm.setAlgo(algorithm);
if (m_algorithm.variant() == xmrig::VARIANT_AUTO) {
if (algorithm == xmrig::CRYPTONIGHT) {
m_algorithm.setVariant(xmrig::VARIANT_1);
}
}
}
if (strstr(m_host.data(), ".nicehash.com")) {