cazala / coin-hive-stratum

use CoinHive's JavaScript miner on any stratum pool
http://npmjs.com/package/coin-hive-stratum
416 stars 465 forks source link

invalid job id #159

Open sebseb7 opened 6 years ago

sebseb7 commented 6 years ago

I use 2.6.11 and connect to a locally installed cryptonote pool.

(http://cryptoknight.cc/stellite/)

I get frequent "{"code":-1,"message":"Invalid job id"} proxy error: undefined ".

what is the problem and how to debug ?

sebseb7 commented 6 years ago

here is the miner: http://cryptoknight.cc/stellite/miner.html

and walletgenerator for testing: http://cryptoknight.cc/stellite/pages/paperwallet.html

sebseb7 commented 6 years ago

the coinhive proxy seems not to react to new jobs from the pool at all... how to debug that?

sebseb7 commented 6 years ago

sees due to new job don have an id:

{"jsonrpc":"2.0","method":"job","params":{"blob":"0101ead4cdd405704c1c420e1c8e185cd3ced549f3ae03428272382ebffba56ab7bd6dd914193500000000e8bd2a17d57e5dde6c60a901bf977ad5c289ce67c2d3d2191ef27692f253232607","job_id":"999866613536141","target":"ffffff00"}}

so that fails:

var minerId = this.minerId[jobParams.id]; 207 if (!minerId) { 208 console.warn('b'); 209 // miner is not online anymore 210 //return; 211 }

DNNSITE commented 6 years ago

Has anyone solved this problem?