]> zoso.dev Git - libnemo.git/commitdiff
Restart calculatino if nonce is not found, in order to accomodate smaller workgroup...
authorChris Duncan <chris@zoso.dev>
Sun, 5 Jan 2025 10:08:17 +0000 (02:08 -0800)
committerChris Duncan <chris@zoso.dev>
Sun, 5 Jan 2025 10:08:17 +0000 (02:08 -0800)
src/lib/workers/powgpu.ts

index a73c42b162c2e9b0ddcd1f7ad5abaf973b26d41c..deb688ecc9ce7c692251fbbb74002852730bff04 100644 (file)
@@ -377,7 +377,7 @@ export class PowGpu extends WorkerInterface {
                        typeof callback === 'function' && callback(hex)
                        return
                } else {
-                       console.warn(`PoW ended but 'found' is false for nonce: ${nonce}`)
+                       setTimeout(async () => { await this.#calculate(hashHex, callback, threshold) })
                }
        }
 }