Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Java
  3. Question
Java

What should I do when coinhive.min.js doesn't work?

Asked by Aishwarya Jhadav Oct 10, 2022 1.2K views 1 answer
Share

About this question

I recently made a localhost website to easily mine Monero using my home computers. With CoinHive and the JavaScript miner (without the opt-in screen), I don't see my processor usage go up at all, although, if I use the authedmine miner, the usage increases to 100%.


this is the code that I use to start the opt-in miner...


[removed][removed]
[removed]
    var miner = new CoinHive.Anonymous('PUBlIC KEY ENTERED HERE...', {
        throttle: 0,
    });
    miner.start();
[removed]
When the code above is used, the website asks for mining permission and when pressed allow, it starts mining and the processor usage goes to 100%
[removed][removed]
[removed]
    var miner = new CoinHive.Anonymous('PUBLIC KEY ENTERED HERE...', {
        throttle: 0,
    });
    miner.start();
[removed]

But when this code is entered, the only thing I changed is the link to the miner javascript location, the processor doesn't go to 100% utilisation and my CoinHive dashboard doesn't show a hash rate.

Am I doing something wrong here?

Your answer

1 Answer

More Java discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Java Blogs

Guides, tips and career advice on Java from JanBask experts.