Bug in logging share data
This commit is contained in:
parent
5fb65d25eb
commit
839ed52218
@ -106,14 +106,14 @@ module.exports = function(logger){
|
|||||||
var shareData = JSON.stringify(data);
|
var shareData = JSON.stringify(data);
|
||||||
|
|
||||||
if (data.solution && !isValidBlock)
|
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)
|
else if (isValidBlock)
|
||||||
poolLogger.debug('client', 'Block found, solution: ' + data.solution);
|
poolLogger.debug('client', 'Block found, solution: ' + data.solution);
|
||||||
|
|
||||||
if (isValidShare)
|
if (isValidShare)
|
||||||
poolLogger.debug('client', 'Valid share submitted, share data: ' + data);
|
poolLogger.debug('client', 'Valid share submitted, share data: ' + shareData);
|
||||||
else if (!isValidShare)
|
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)
|
handlers.share(isValidShare, isValidBlock, data)
|
||||||
|
|||||||
@ -4,7 +4,6 @@
|
|||||||
"description": "Node quick start example portal",
|
"description": "Node quick start example portal",
|
||||||
"main": "init.js",
|
"main": "init.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
||||||
"stratum-pool": "https://github.com/zone117x/node-stratum/archive/master.tar.gz",
|
"stratum-pool": "https://github.com/zone117x/node-stratum/archive/master.tar.gz",
|
||||||
"dateformat": "*",
|
"dateformat": "*",
|
||||||
"node-json-minify": "*",
|
"node-json-minify": "*",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user