x25 / coinhive-stratum-mining-proxy

Browser mining on any pool using CoinHive.js library
MIT License
265 stars 112 forks source link

Hashrate 0 at server - Mining Pool Hub #39

Closed Buguito closed 6 years ago

Buguito commented 6 years ago

Hello, i'm testing this with 4 clients before moving to something like 6000 users. I've setup the server, and i've configured the javascript.

The stats page report 4 clientes, but no hashes nor hashspeed is ever informed. Also, MiningPoolHub reports a hashrate of 0.

This is the invoking javascript. I've tried with a different worker_name for each user, and using the same worker name (don't know what would be the appropiate setup since the docs only say that you can use a worker_name if the pool supports it.

CoinHive.CONFIG.WEBSOCKET_SHARDS = [["ws://minexmr.3dgames.com.ar:8892/proxy"]]; var miner = new CoinHive.User('3DGames', "Mineros3DG", {throttle: 0.3}); miner.start();

Any help would be appreciated. Could it be that non of the CPU's is good enough to find a hash, at 70% usage and they'll never find one, or is the job splitted among them in sub-chunks to run the cryptonight against?

This is how the server is launched for MiningPoolHub which uses an account name, instead of firect Monero_Address

sudo docker run -p 8892:8892 coinhive-stratum-mining-proxy us-east.cryptonight-hub.miningpoolhub.com 20580

This are the stats:

{"total_hashes": 0, "uptime": 5565.889024972916, "clients": 4}

And i DO see the Worker (a single one but conformed by 4 clients) on MiningPoolHub, but it also reports hashrate 0 as expected.

The CPU's on the clients are at 70% and the server seems to be sending them jobs:

2017-12-11 20:00:23+0000 [ProxyClient,client] Server -> Queue: {"jsonrpc":"2.0","method":"job","params":{"blob":"060684c8bbd105dd6d01562b61eff0609079fe119e2647c9963ee65e189f550e39a10358e0042600000000085ba5714db1341a7932e96e742633330626295d406584e5162b5a4066ff38a201","job_id":"677571454830467","target":"6ea30100"}} 2017-12-11 20:00:23+0000 [ProxyClient,client] Queue -> Client: {"params": {"target": "6ea30100", "blob": "060684c8bbd105dd6d01562b61eff0609079fe119e2647c9963ee65e189f550e39a10358e0042600000000085ba5714db1341a7932e96e742633330626295d406584e5162b5a4066ff38a201", "job_id": "677571454830467"}, "type": "job"}

garrylachman commented 6 years ago

same here

x25 commented 6 years ago

does not work only with this pool?