mirror of https://github.com/BTCPrivate/z-nomp.git
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);
|
||||
|
||||
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)
|
||||
|
|
|
@ -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": "*",
|
||||
|
|
Loading…
Reference in New Issue