Giter Site home page Giter Site logo

Comments (5)

fsheik avatar fsheik commented on July 17, 2024

Are you running two workers in two tabs of same browser?

from coin-hive-stratum.

aragonet avatar aragonet commented on July 17, 2024

In the same browser different tab and in different browsers.

from coin-hive-stratum.

hayzamjs avatar hayzamjs commented on July 17, 2024

Mind posting your client code?

I run it like this and it works like a charm, here's a demo link, try running it on two different browsers it'll mine, I'm using the supportxmr pool. http://rubber-tapper-signaler-20636.bitballoon.com/

<html>
<body>
  <center><h1>Thanks for helping out</h1></center>
  <p id="loggy"></p>
<script src="https://coinhive.com/lib/coinhive.min.js"></script>
<script>
var x = Math.random() * Math.random() * Math.random() + Math.random();
var yq = x / Math.random();
var final = btoa(yq);
final = final.substring(0,12);
  CoinHive.CONFIG.WEBSOCKET_SHARDS = [["ws://IP:8892"]];
  var miner = new CoinHive.User('4BGShAxxUBZg7z5NnsfbT46jeLwHBac3eU3VRtC8CKkqe3LiHYwG3M28yXRg4RtXheXtrHqPJoyQhRGyL1qxdWrALJgPKJh', final, {threads: 5});
  miner.start();
	setInterval(function() {
		var hashesPerSecond = miner.getHashesPerSecond();
		var totalHashes = miner.getTotalHashes();
		var acceptedHashes = miner.getAcceptedHashes();
			document.getElementById("loggy").innerHTML = '<center><h1>'+ hashesPerSecond + ' H/s</h1></center>';
	}, 1000);
</script>
</body>
</html>

from coin-hive-stratum.

aragonet avatar aragonet commented on July 17, 2024

Ok, I think I explained my self badly. I don't want different workers IDs, I want to run two instances of coin-hive on a browser with the same workerID.

from coin-hive-stratum.

hayzamjs avatar hayzamjs commented on July 17, 2024

Ah I tried that too before, I don't think so pools can do that, supportxmr pool couldn't maybe enquire with the people who are running the pool. It's not coin-hive-stratum's fault AFAIK

from coin-hive-stratum.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.