updated
This commit is contained in:
parent
43517a8824
commit
69eec8318e
@ -6,6 +6,8 @@
|
|||||||
"address": "DDt79i6P3Wro3SD3HSnkRLpMgUGUGdiNhS",
|
"address": "DDt79i6P3Wro3SD3HSnkRLpMgUGUGdiNhS",
|
||||||
"stratumPort": 3334,
|
"stratumPort": 3334,
|
||||||
"difficulty": 8,
|
"difficulty": 8,
|
||||||
|
"templateRefreshInterval": 60,
|
||||||
|
"merkleRefreshInterval": 60,
|
||||||
"daemon": {
|
"daemon": {
|
||||||
"host": "localhost",
|
"host": "localhost",
|
||||||
"port": 8332,
|
"port": 8332,
|
||||||
|
|||||||
4
pool.js
4
pool.js
@ -96,10 +96,10 @@ var pool = module.exports = function pool(coin){
|
|||||||
function StartStatumServer(){
|
function StartStatumServer(){
|
||||||
|
|
||||||
console.log('Stratum server starting on port ' + coin.options.stratumPort + ' for ' + coin.options.name);
|
console.log('Stratum server starting on port ' + coin.options.stratumPort + ' for ' + coin.options.name);
|
||||||
this.stratumServer = new stratum.Server({
|
_this.stratumServer = new stratum.Server({
|
||||||
port: coin.options.stratumPort
|
port: coin.options.stratumPort
|
||||||
});
|
});
|
||||||
this.stratumServer.on('started', function(){
|
_this.stratumServer.on('started', function(){
|
||||||
console.log('Stratum server started on port ' + coin.options.stratumPort + ' for ' + coin.options.name);
|
console.log('Stratum server started on port ' + coin.options.stratumPort + ' for ' + coin.options.name);
|
||||||
}).on('client', function(client){
|
}).on('client', function(client){
|
||||||
client.on('subscription', function(params, resultCallback){
|
client.on('subscription', function(params, resultCallback){
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user