]> zoso.dev Git - nano-pow.git/commitdiff
Replace remaining scalar of threshold comaparison with vector variable.
authorChris Duncan <chris@zoso.dev>
Tue, 14 Jan 2025 20:05:02 +0000 (12:05 -0800)
committerChris Duncan <chris@zoso.dev>
Tue, 14 Jan 2025 20:05:02 +0000 (12:05 -0800)
src/shaders/compute.wgsl

index afa452c0614db0db6279656284770e3c064d4c80..5ff47db89ff9d68de03b5a67584125ad8f70e335 100644 (file)
@@ -9641,7 +9641,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 ^ v_01.y ^ v17) > threshold && atomicLoad(&work.found) == 0u) {
+       if ((BLAKE2B_IV32_1 ^ v_01.y ^ v_1617.y) > threshold && atomicLoad(&work.found) == 0u) {
                atomicStore(&work.found, 1u);
                work.nonce.x = m0;
                work.nonce.y = m1;