Fixed miner freeze when switch between RandomX variants.

This commit is contained in:
XMRig 2019-07-28 14:42:29 +07:00
parent ef2454b025
commit ab02bd9847
4 changed files with 15 additions and 0 deletions

View file

@ -352,6 +352,10 @@ void xmrig::Miner::setEnabled(bool enabled)
void xmrig::Miner::setJob(const Job &job, bool donate)
{
for (IBackend *backend : d_ptr->backends) {
backend->prepare(job);
}
uv_rwlock_wrlock(&d_ptr->rwlock);
const uint8_t index = donate ? 1 : 0;