mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-24 21:32:47 -05:00
Correct flex algo hashrate calc
This commit is contained in:
@@ -175,7 +175,7 @@ bool xmrig::CpuWorker<N>::selfTest()
|
||||
case Algorithm::GHOSTRIDER_RTM:
|
||||
return (N == 8) && verify(Algorithm::GHOSTRIDER_RTM, test_output_gr);
|
||||
case Algorithm::FLEX_KCN:
|
||||
return verify(Algorithm::FLEX_KCN, test_output_flex);
|
||||
return (N == 1) && verify(Algorithm::FLEX_KCN, test_output_flex);
|
||||
default:;
|
||||
}
|
||||
}
|
||||
@@ -340,13 +340,16 @@ void xmrig::CpuWorker<N>::start()
|
||||
case Algorithm::GHOSTRIDER_RTM:
|
||||
if (N == 8) {
|
||||
ghostrider::hash_octa(m_job.blob(), job.size(), m_hash, m_ctx, m_ghHelper);
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
valid = false;
|
||||
}
|
||||
break;
|
||||
case Algorithm::FLEX_KCN:
|
||||
flex_hash(reinterpret_cast<const char*>(m_job.blob()), reinterpret_cast<char*>(m_hash), m_ctx);
|
||||
if (N == 1) {
|
||||
flex_hash(reinterpret_cast<const char*>(m_job.blob()), reinterpret_cast<char*>(m_hash), m_ctx);
|
||||
} else {
|
||||
valid = false;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
valid = false;
|
||||
|
||||
Reference in New Issue
Block a user