Skip to content

Commit

Permalink
Slushpool support
Browse files Browse the repository at this point in the history
  • Loading branch information
BScrk committed Jan 9, 2018
1 parent 6b93a81 commit 5422c85
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/pool_connector.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ var tls = require('tls');
//var ldj = require('ldjson-stream');
var ldj = require('ndjson');
const chalk = require('chalk');
var info = require('../package.json');

var logger = require('./stratum_logger.js');
var minersController = require('./miners_controller.js');
Expand Down Expand Up @@ -34,7 +35,8 @@ var PoolConnector = function(restartCallback){
logger.log('Subscribing to pool...');
var sub = { id: 1
, method:"mining.subscribe"
, params: [ "","", "Stratum proxy" ]};
// , params: [ info.name + "/" + info.version,"", "Stratum proxy" ]};
, params: [this.current_pool.host, this.current_pool.port, info.name + "/" + info.version, null]};
this.status = "subscribing";
this.send(sub);
};
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "zecproxy",
"version": "1.0.7",
"version": "1.0.8",
"description": "Zcash Stratum Proxy",
"main": "proxy.js",
"scripts": {},
Expand Down

0 comments on commit 5422c85

Please sign in to comment.