try {
({ Cache, stats } = await import('https://cdn.jsdelivr.net/npm/nano-pow@5.1/dist/utils/index.js'))
} catch (err) {
- throw new Error(`Failed to load NanoPow ${err}`)
+ throw new Error(`Failed to load NanoPow utilities ${err}`)
}
}
}
async function run (size, difficulty, effort, api, isOutputShown, isDebug, isSelfCheck) {
// Generate once on load to compile shaders and initialize buffers
- await NanoPow.work_generate(random(), { api, difficulty: '0' })
+ await NanoPow.work_generate(random(), { api, difficulty: '0', debug: isDebug})
const type = api
api = type.toLowerCase()
if (isSelfCheck) {