mirror of
https://github.com/monero-project/monero.git
synced 2024-12-23 12:09:54 +00:00
[randomx] Add missing randomx_vm_set_cache()
This commit is contained in:
parent
51873fec04
commit
fe92fa1391
1 changed files with 4 additions and 0 deletions
|
@ -278,6 +278,10 @@ void rx_slow_hash(const uint64_t mainheight, const uint64_t seedheight, const ch
|
||||||
CTHR_MUTEX_LOCK(rx_dataset_mutex);
|
CTHR_MUTEX_LOCK(rx_dataset_mutex);
|
||||||
if (rx_dataset != NULL && rx_dataset_height != seedheight)
|
if (rx_dataset != NULL && rx_dataset_height != seedheight)
|
||||||
rx_initdata(cache, miners, seedheight);
|
rx_initdata(cache, miners, seedheight);
|
||||||
|
else if (rx_dataset == NULL) {
|
||||||
|
/* this is a no-op if the cache hasn't changed */
|
||||||
|
randomx_vm_set_cache(rx_vm, rx_sp->rs_cache);
|
||||||
|
}
|
||||||
CTHR_MUTEX_UNLOCK(rx_dataset_mutex);
|
CTHR_MUTEX_UNLOCK(rx_dataset_mutex);
|
||||||
} else {
|
} else {
|
||||||
/* this is a no-op if the cache hasn't changed */
|
/* this is a no-op if the cache hasn't changed */
|
||||||
|
|
Loading…
Reference in a new issue