Port diff warnings were happening on accident
This commit is contained in:
parent
6c39d2d201
commit
8505ca6c50
@ -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
|
//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 '
|
var warnMessage = 'Network difficulty of ' + _this.jobManager.currentJob.difficulty + ' is lower than '
|
||||||
+ portWarnings.join(' and ');
|
+ portWarnings.join(' and ');
|
||||||
emitWarningLog(warnMessage);
|
emitWarningLog(warnMessage);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user