Just wanted to check this is the intended behaviour for the benchmarking test in batch mode.
if (batch) {
nonce = atomicNonce.fetch_add(1);
}
store32(noncePtr, nonce);
(batch ? randomx_calculate_hash_next : randomx_calculate_hash)(vm, blockTemplate, sizeof(blockTemplate), &hash);
if (commit) {
randomx_calculate_commitment(blockTemplate, sizeof(blockTemplate), &hash, &hash);
}
Just wanted to check this is the intended behaviour for the benchmarking test in batch mode.
randomx_calculate_commitmentis invoked using theblockTemplatebuffer containing the new nonce, and thehashvalue which was computed for the old nonce.https://github.com/tevador/RandomX/blob/master/src/tests/benchmark.cpp#L143