]> git.codecow.com Git - nano-pow.git/commitdiff
Fix regression in WebGL hash endianness.
authorChris Duncan <chris@codecow.com>
Fri, 10 Jul 2026 14:00:45 +0000 (07:00 -0700)
committerChris Duncan <chris@codecow.com>
Fri, 10 Jul 2026 14:00:45 +0000 (07:00 -0700)
src/lib/generate/webgl/index.ts

index 0c36071b522a5da95543bd8a1457d392cf72dcfe..f4c13e66b7c8bf92e41af0866aa442682c7bbfc5 100644 (file)
@@ -295,7 +295,7 @@ function init (hash: Uint32Array, difficulty: bigint): void {
 
        // Set up INPUT which must be 16 bytes per 32-bit value due to array alignment
        for (let i = 0; i < 8; i++) {
-               inputHashView.setUint32(i * 16, hash[i], true)
+               inputHashView.setUint32(i * 16, hash[i])
        }
        inputDifficultyView.setBigUint64(0, difficulty, true)
        LOG: logger.log('INPUT', inputArray.buffer.slice(0))