From: Chris Duncan Date: Wed, 5 Feb 2025 14:20:28 +0000 (-0800) Subject: Fix copypasta bug. X-Git-Tag: v3.0.0~22 X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=4e5a2fe88fd488bb03e7c05893a403809c0fa86f;p=nano-pow.git Fix copypasta bug. --- diff --git a/src/shaders/compute.wgsl b/src/shaders/compute.wgsl index d6d01f1..8dd90cd 100644 --- a/src/shaders/compute.wgsl +++ b/src/shaders/compute.wgsl @@ -1456,7 +1456,7 @@ fn main(id: vec3) { * Set nonce if it passes the threshold and no other thread has set it. * Only high bits are needed for comparison since threshold low bits are zero. */ - if ((BLAKE2B_IV32_1 ^ v0.y ^ v8.y) > threshold && atomicLoad(&work.found) == 0u) { + if ((BLAKE2B_IV_0.y ^ v0.y ^ v8.y) > ubo.threshold && atomicLoad(&work.found) == 0u) { atomicStore(&work.found, 1u); work.nonce = m0; }