greetings need help unable to find function for light mode verification for hashes in RandomX source
1 Answer
"Light mode" just means don't alloc and init a 2080 MiB randomx_dataset
(just use a randomx_cache
, which is 256 MiB). So don't use the flag RANDOMX_FLAG_FULL_MEM
when calling randomx_create_vm and pass it a NULL dataset.
Whether you are mining or verifying, you call the same randomx_calculate_hash
function.