From 57f8dc3ffabf84165dfc1163c3790e00284b0a6a Mon Sep 17 00:00:00 2001 From: Matt Date: Wed, 26 Feb 2014 21:34:04 -0700 Subject: [PATCH] Add block height to data emitted on pool share --- README.md | 1 + lib/jobManager.js | 1 + 2 files changed, 2 insertions(+) diff --git a/README.md b/README.md index 0862162..30faf58 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/lib/jobManager.js b/lib/jobManager.js index 9515847..edcccba 100644 --- a/lib/jobManager.js +++ b/lib/jobManager.js @@ -245,6 +245,7 @@ var JobManager = module.exports = function JobManager(options){ ip: ipAddress, worker: workerName, difficulty: difficulty, + height: job.rpcData.height, solution: blockHash }, blockHex);