]> zoso.dev Git - nano-pow.git/commitdiff
Scrap CLI GPU for now, make a different branch for fixing it.
authorChris Duncan <chris@zoso.dev>
Sun, 9 Mar 2025 20:18:02 +0000 (13:18 -0700)
committerChris Duncan <chris@zoso.dev>
Sun, 9 Mar 2025 20:18:02 +0000 (13:18 -0700)
cli.js

diff --git a/cli.js b/cli.js
index 5678458a13e5cf1992325436915b17c0662a96bc..90aec93f3adbfeb27aa12effca3e7a72db4749ad 100755 (executable)
--- a/cli.js
+++ b/cli.js
@@ -54,8 +54,6 @@ for (let i = 0; i < args.length; i++) {
     if (msg.type() === 'info' && /^[A-Fa-f0-9]{16}$/.test(msg.text())) {
       console.log(msg.text())
       process.exit()
-    } else {
-      console.log(msg.type(), ':', msg.text(), ':', msg.stackTrace())
     }
   })
   await page.setContent(`
@@ -65,7 +63,7 @@ for (let i = 0; i < args.length; i++) {
         <script type="module">
           ${NanoPow}
           try {
-            const work = await NanoPowGpu.search('${hash}')
+            const work = await NanoPow.search('${hash}')
             console.info(work)
           } catch (err) {
             console.error(err)