From: Chris Duncan Date: Sun, 5 Jan 2025 09:36:54 +0000 (-0800) Subject: Fix copypasta typos in threshold check. X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=decac848feecc84d71baa8c68deeb2190903693b;p=libnemo.git Fix copypasta typos in threshold check. --- diff --git a/src/lib/workers/powgpu.ts b/src/lib/workers/powgpu.ts index 707fcab..a73c42b 100644 --- a/src/lib/workers/powgpu.ts +++ b/src/lib/workers/powgpu.ts @@ -214,7 +214,7 @@ export class PowGpu extends WorkerInterface { /** * Set nonce if it passes the threshold and no other thread has set it */ - if (BLAKE2B_IV32_1 ^ v[1u] ^ v[17u]) > ubo.threshold && atomicStore(&work.found) == 0u) { + if ((BLAKE2B_IV32_1 ^ v[1u] ^ v[17u]) > ubo.threshold && atomicLoad(&work.found) == 0u) { atomicStore(&work.found, 1u); work.nonce.x = m[0]; work.nonce.y = m[1];