From: Chris Duncan Date: Tue, 11 Mar 2025 21:37:43 +0000 (-0700) Subject: Fix test page validation not using same options as search. X-Git-Tag: v3.1.0~9^2~11 X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=18014a59a5ff6d1691b3f7e906649929645a047e;p=nano-pow.git Fix test page validation not using same options as search. --- diff --git a/test.html b/test.html index 2855a96..14c42da 100644 --- a/test.html +++ b/test.html @@ -125,7 +125,7 @@ SPDX-License-Identifier: GPL-3.0-or-later return } const end = performance.now() - const isValid = (await NP.validate(work, hash)) ? 'VALID' : 'INVALID' + const isValid = (await NP.validate(work, hash, { threshold, debug: isDebug })) ? 'VALID' : 'INVALID' times.push(end - start) const msg = `${isValid} [${work}] ${hash} (${end - start} ms)` if (isOutputShown) document.getElementById('output').innerHTML += `${msg}
`