From 1d31f1b0b8eae7c60665292d844aa49d80ae284d Mon Sep 17 00:00:00 2001 From: XMRig Date: Mon, 11 Jun 2018 12:26:49 +0700 Subject: [PATCH] Fix command line option "-a cn-heavy". --- src/common/net/Pool.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/common/net/Pool.cpp b/src/common/net/Pool.cpp index 006d76a1..74e5012a 100644 --- a/src/common/net/Pool.cpp +++ b/src/common/net/Pool.cpp @@ -233,7 +233,10 @@ void Pool::adjust(xmrig::Algo algorithm) m_algorithm.setAlgo(algorithm); if (m_algorithm.variant() == xmrig::VARIANT_AUTO) { - if (algorithm == xmrig::CRYPTONIGHT) { + if (algorithm == xmrig::CRYPTONIGHT_HEAVY) { + m_algorithm.setVariant(xmrig::VARIANT_0); + } + else { m_algorithm.setVariant(xmrig::VARIANT_1); } }