From 8a8bb9069e3cc073a21a9769c34329fb1e6af19c Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Thu, 2 Jan 2025 13:43:40 -0800 Subject: [PATCH] Test against actual threshold. --- src/lib/workers/powgpu.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.34.1