Fixed Flex algo multithread issue

This commit is contained in:
MoneroOcean 2024-05-28 22:36:24 +03:00
parent 43f73163d2
commit 6c890b437c
2 changed files with 2 additions and 2 deletions

View file

@ -37,6 +37,7 @@
#include "crypto/rx/RxDataset.h"
#include "crypto/rx/RxVm.h"
#include "crypto/ghostrider/ghostrider.h"
#include "crypto/ghostrider/sph_keccak.h"
#include "crypto/flex/flex.h"
#include "net/JobResults.h"
@ -100,6 +101,7 @@ xmrig::CpuWorker<N>::CpuWorker(size_t id, const CpuLaunchData &data) :
# ifdef XMRIG_ALGO_GHOSTRIDER
m_ghHelper = ghostrider::create_helper_thread(affinity(), data.priority, data.affinities);
hard_coded_eb = (m_algorithm.id() != Algorithm::FLEX_KCN) ? 1 : 6;
# endif
}