]> zoso.dev Git - nano-pow.git/commitdiff
Fix test page validation not using same options as search.
authorChris Duncan <chris@zoso.dev>
Tue, 11 Mar 2025 21:37:43 +0000 (14:37 -0700)
committerChris Duncan <chris@zoso.dev>
Tue, 11 Mar 2025 21:37:43 +0000 (14:37 -0700)
test.html

index 2855a96422797601e695d59fb66f054bc290da41..14c42dab08394ee8724778a3509043e6b42efcce 100644 (file)
--- 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}<br/>`