Skip to content

Commit

Permalink
Fixed API crashing if a batch miner stats lookup isn't successful
Browse files Browse the repository at this point in the history
  • Loading branch information
zone117x committed Jun 22, 2014
1 parent 0551ad0 commit c641e86
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ function broadcastLiveStats(){
var address = addresses[i];
var stats = replies[i];
var res = addressConnections[address];
res.end(formatMinerStats(stats, address));
res.end(stats ? formatMinerStats(stats, address) : '{"error": "not found"');
}
});
}
Expand Down
2 changes: 1 addition & 1 deletion lib/pool.js
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ function recordShareData(miner, job, shareDiff, blockCandidate, hashHex, shareTy
}
});

log('debug', 'Share Validator', 'Accepted ' + shareType + 'share at difficulty ' + job.difficulty + '/' + shareDiff + ' from ' + miner.login + '@' + miner.ip);
log('debug', 'Share Validator', 'Accepted ' + shareType + ' share at difficulty ' + job.difficulty + '/' + shareDiff + ' from ' + miner.login + '@' + miner.ip);

}

Expand Down

0 comments on commit c641e86

Please sign in to comment.