Browse Source
Merge pull request #25 from webworker01/new-merkle
New merkle + Redis Auth
master
Web Worker
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
7 additions and
1 deletions
-
init.js
-
package.json
|
|
@ -205,6 +205,12 @@ var spawnPoolWorkers = function(){ |
|
|
|
} else if (!connection) { |
|
|
|
redisConfig = pcfg.redis; |
|
|
|
connection = redis.createClient(redisConfig.port, redisConfig.host); |
|
|
|
if (redisConfig.password != "") { |
|
|
|
connection.auth(redisConfig.password); |
|
|
|
connection.on("error", function (err) { |
|
|
|
logger.error("redis", coin, "An error occured while attempting to authenticate redis: " + err); |
|
|
|
}); |
|
|
|
} |
|
|
|
connection.on('ready', function(){ |
|
|
|
logger.info('PPLNT', coin, 'TimeShare processing setup with redis (' + redisConfig.host + |
|
|
|
':' + redisConfig.port + ')'); |
|
|
|
|
|
@ -45,7 +45,7 @@ |
|
|
|
"nonce": "1.0.4", |
|
|
|
"redis": "2.8.0", |
|
|
|
"request": "^2.88.0", |
|
|
|
"stratum-pool": "git+https://github.com/webworker01/node-stratum-pool.git" |
|
|
|
"stratum-pool": "git+https://github.com/webworker01/node-stratum-pool.git#new-merkle" |
|
|
|
}, |
|
|
|
"engines": { |
|
|
|
"node": ">=8.11" |
|
|
|