Fixed miner freeze when switch between RandomX variants.
This commit is contained in:
parent
ef2454b025
commit
ab02bd9847
4 changed files with 15 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue