Review: npm start demo `_verifyThread` never fires & `_useWASM` not working
lacvapps opened this issue · 2 comments
lacvapps commented
Describe the bug
If you open the miner.html, ready will never fire. The test job will never run.
To Reproduce
Steps to reproduce the behavior:
line 187 of deepMiner.js 'this._verifyThread.verify' will never fire callback because 'ready' message is never posted
Expected behavior
post message ready
Desktop (please complete the following information):
Ubuntu 18.04
lacvapps commented
forcing _useWASM to false allows the program to work.
evil7 commented
Hi @lacvapps ! There are some wrong dude. So I think you should know this:
- The
this._verifyThread.verify
is a job only for coinhive. Used to do likereCAPTCHA
verify. That's ahashCAPTCHA
verify function. Coinhive sending averify
not ajob
to do this. And theselfTest
is the real test forcheck if can the miner working
. I think you have reviewing with a wrong function. This "miner hashing version verify" isselfTest
but not_verify
. - I have not building with ASMJS module because it's to slow to do hashing at ASMJS. At this time it's 25H/s under WASM but ASMJS is half of WASM. See how slow it is? and that's why we should not use this ASMJS module.
- The full API and document come from Coinhive because the
worker.js
was dumping for Coinhive's miner at first. Some this unused API list in document. Yes but I have no time to nullify them and delete in document and theworker.js
. I think it will fix when I rebuild all into Service Worker. - You can read the Testing Notes in README.md and test speed of it by youself. You will know why coinhive quit and why I marked this
for leanning
at temporary.
But at all thanks for review this project bro.