From: Chris Duncan Date: Thu, 2 Jan 2025 21:43:40 +0000 (-0800) Subject: Test against actual threshold. X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=8a8bb9069e3cc073a21a9769c34329fb1e6af19c;p=libnemo.git Test against actual threshold. --- diff --git a/src/lib/workers/powgpu.ts b/src/lib/workers/powgpu.ts index 10ad4c4..adb56b9 100644 --- a/src/lib/workers/powgpu.ts +++ b/src/lib/workers/powgpu.ts @@ -202,7 +202,7 @@ export class PowGpu extends WorkerInterface { } // Store the result directly into work array - if ((BLAKE2B_IV32_1 ^ v[1u] ^ v[17u]) > 0) { + if ((BLAKE2B_IV32_1 ^ v[1u] ^ v[17u]) > ubo.threshold) { atomicStore(&work.found, 1u); work.nonce.x = i; work.nonce.y = id;