mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-16 11:12:47 -05:00
RandomX: don't restart mining threads when the seed changes
It helps to not loose huge pages when the seed changes (every 2048 blocks, ~2.8 days).
This commit is contained in:
@@ -154,6 +154,8 @@ void xmrig::RxQueue::backgroundInit()
|
||||
continue;
|
||||
}
|
||||
|
||||
// Update seed here again in case there was more than one item in the queue
|
||||
m_seed = item.seed;
|
||||
m_state = STATE_IDLE;
|
||||
m_async->send();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user