Port diff warnings were happening on accident

This commit is contained in:
Matt 2014-03-30 14:39:07 -06:00
parent 6c39d2d201
commit 8505ca6c50

View File

@ -89,7 +89,7 @@ var pool = module.exports = function pool(options, authorizeFn){
});
//Only let the first fork show synced status or the log wil look flooded with it
if (portWarnings.length && !process.env.forkId || process.env.forkId === '0') {
if (portWarnings.length > 0 && (!process.env.forkId || process.env.forkId === '0')) {
var warnMessage = 'Network difficulty of ' + _this.jobManager.currentJob.difficulty + ' is lower than '
+ portWarnings.join(' and ');
emitWarningLog(warnMessage);