Added port to share emitter
This commit is contained in:
parent
de1c8c018b
commit
eb4b62e9c4
@ -293,6 +293,7 @@ Listen to pool events
|
||||
'data' object contains:
|
||||
job: 4, //stratum work job ID
|
||||
ip: '71.33.19.37', //ip address of client
|
||||
port: 3333, //port of the client
|
||||
worker: 'matt.worker1', //stratum worker name
|
||||
height: 443795, //block height
|
||||
blockReward: 5000000000, //the number of satoshis received as payment for solving this block
|
||||
|
||||
@ -165,7 +165,7 @@ var JobManager = module.exports = function JobManager(options){
|
||||
|
||||
};
|
||||
|
||||
this.processShare = function(jobId, previousDifficulty, difficulty, extraNonce1, extraNonce2, nTime, nonce, ipAddress, workerName){
|
||||
this.processShare = function(jobId, previousDifficulty, difficulty, extraNonce1, extraNonce2, nTime, nonce, ipAddress, port, workerName){
|
||||
var shareError = function(error){
|
||||
_this.emit('share', {
|
||||
job: jobId,
|
||||
@ -253,6 +253,7 @@ var JobManager = module.exports = function JobManager(options){
|
||||
_this.emit('share', {
|
||||
job: jobId,
|
||||
ip: ipAddress,
|
||||
port: port,
|
||||
worker: workerName,
|
||||
height: job.rpcData.height,
|
||||
blockReward: job.rpcData.coinbasevalue,
|
||||
|
||||
@ -500,6 +500,7 @@ var pool = module.exports = function pool(options, authorizeFn){
|
||||
params.nTime,
|
||||
params.nonce,
|
||||
client.remoteAddress,
|
||||
client.socket.remotePort,
|
||||
params.name
|
||||
);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user