]> zoso.dev Git - nano-pow.git/commitdiff
Replace scalar in threshold check with vector component.
authorChris Duncan <chris@zoso.dev>
Tue, 14 Jan 2025 17:42:54 +0000 (09:42 -0800)
committerChris Duncan <chris@zoso.dev>
Tue, 14 Jan 2025 17:42:54 +0000 (09:42 -0800)
src/shaders/compute.wgsl

index dddb3545e3877c8bd898b8f6f0cfb7eb69b16806..48cfd75f09d9d5f0f8f17708511db0c59595a93f 100644 (file)
@@ -8912,7 +8912,7 @@ fn main(@builtin(global_invocation_id) id: vec3<u32>) {
        /**
        * Set nonce if it passes the threshold and no other thread has set it
        */
-       if ((BLAKE2B_IV32_1 ^ v1 ^ v17) > threshold && atomicLoad(&work.found) == 0u) {
+       if ((BLAKE2B_IV32_1 ^ v_01.y ^ v17) > threshold && atomicLoad(&work.found) == 0u) {
                atomicStore(&work.found, 1u);
                work.nonce.x = m0;
                work.nonce.y = m1;