Bug in logging share data

This commit is contained in:
Matt 2014-03-06 16:00:57 -07:00
parent 5fb65d25eb
commit 839ed52218
2 changed files with 3 additions and 4 deletions

View File

@ -106,14 +106,14 @@ module.exports = function(logger){
var shareData = JSON.stringify(data);
if (data.solution && !isValidBlock)
poolLogger.debug('client', 'We thought a block solution was found but it was rejected by the daemon, share data: ' + data);
poolLogger.debug('client', 'We thought a block solution was found but it was rejected by the daemon, share data: ' + shareData);
else if (isValidBlock)
poolLogger.debug('client', 'Block found, solution: ' + data.solution);
if (isValidShare)
poolLogger.debug('client', 'Valid share submitted, share data: ' + data);
poolLogger.debug('client', 'Valid share submitted, share data: ' + shareData);
else if (!isValidShare)
poolLogger.debug('client', 'Invalid share submitted, share data: ' + data)
poolLogger.debug('client', 'Invalid share submitted, share data: ' + shareData)
handlers.share(isValidShare, isValidBlock, data)

View File

@ -4,7 +4,6 @@
"description": "Node quick start example portal",
"main": "init.js",
"dependencies": {
"stratum-pool": "https://github.com/zone117x/node-stratum/archive/master.tar.gz",
"dateformat": "*",
"node-json-minify": "*",