From 298cf37121e108ca9198be85ed21f8797e22350f Mon Sep 17 00:00:00 2001 From: XMRig Date: Fri, 4 May 2018 03:19:42 +0700 Subject: [PATCH] Force variant 1 if no algorithm specified. --- src/common/net/Pool.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/common/net/Pool.cpp b/src/common/net/Pool.cpp index 8c0de46ab..06622d28e 100644 --- a/src/common/net/Pool.cpp +++ b/src/common/net/Pool.cpp @@ -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")) {