Add block height to data emitted on pool share

This commit is contained in:
Matt 2014-02-26 21:34:04 -07:00
parent 79c1a95b59
commit 57f8dc3ffa
2 changed files with 2 additions and 0 deletions

View File

@ -153,6 +153,7 @@ Listen to pool events
ip: '71.33.19.37', //ip address of client
worker: 'matt.worker1', //stratum worker name
difficulty: 64, //stratum client difficulty
height: 443795, //block height
//solution is set if block was found
solution: '110c0447171ad819dd181216d5d80f41e9218e25d833a2789cb8ba289a52eee4',
error: 'low share difficulty' //set if share is rejected for some reason

View File

@ -245,6 +245,7 @@ var JobManager = module.exports = function JobManager(options){
ip: ipAddress,
worker: workerName,
difficulty: difficulty,
height: job.rpcData.height,
solution: blockHash
}, blockHex);