cazala / coin-hive

CoinHive cryptocurrency miner for node.js
https://www.npmjs.com/package/coin-hive
MIT License
1.99k stars 399 forks source link

Why puppeteer? #79

Closed philkunz closed 6 years ago

philkunz commented 6 years ago

I wonder: Why do you use puppeteer? nodejs already provides the v8 engine, doesn't it?

soyuka commented 6 years ago

because the original script runs in the browser, not sure you can run wasm scripts in node?

evil7 commented 6 years ago

bcs some JavaScript functions in coinhive's codes only working for the browser. like some function to get CPU cores number and Worker. If you wanna running wasm in node in your OS. Why nodejs in used. C / C++ more fast than it. Why not to running a ccminer or ELF miner to mining more?

soyuka commented 6 years ago

@evil7 Exactly what I'm saying to everyone, this has a really low interest and real miner like xmrig are way better on an actual server.

philkunz commented 6 years ago

makes sense.