cazala / coin-hive

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

throttle doesn't throttle #93

Open iamisti opened 6 years ago

iamisti commented 6 years ago

I'm using the following js resource: https://coinhive.com/lib/coinhive.min.js

And when mining, I'm trying to set the throttle level to a lower value from the initial value to:

miner.setThrottle(0.8);

But for me it just doesn't do anything. The value changes, I get the previously set value through the public method: miner.getThrottle() // comes back 0.8

but in reality, the hashing speed does not changes at all. Setting throttle does not affect anything at all. my phone is doing 13 H/s in a chrome browser, even when I set it to 0 or to 0.8.

I'm trying to use this throttle to stop draining the battery, even when I'm on a charger, but it doesn't work.

Pythonic-Rainbow commented 6 years ago

Confirmed.

stitcher-atx commented 5 years ago

I am having the same issue.