]> zoso.dev Git - libnemo.git/commitdiff
Test against actual threshold.
authorChris Duncan <chris@zoso.dev>
Thu, 2 Jan 2025 21:43:40 +0000 (13:43 -0800)
committerChris Duncan <chris@zoso.dev>
Thu, 2 Jan 2025 21:43:40 +0000 (13:43 -0800)
src/lib/workers/powgpu.ts

index 10ad4c423d6c2bee1ebaa848578409d625be3bdd..adb56b9421125fec2c918d6dfe12f79504c0a8c1 100644 (file)
@@ -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;