Show progress is module was spawned without forkid
This commit is contained in:
parent
29dde67bf7
commit
57d2f02b28
@ -356,7 +356,7 @@ var pool = module.exports = function pool(options, authorizeFn){
|
|||||||
var percent = (currentBlocks / totalBlocks * 100).toFixed(2);
|
var percent = (currentBlocks / totalBlocks * 100).toFixed(2);
|
||||||
|
|
||||||
//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 (process.env.forkId === '0')
|
if (!process.env.forkId || process.env.forkId === '0')
|
||||||
emitWarningLog('Downloaded ' + percent + '% of blockchain from network');
|
emitWarningLog('Downloaded ' + percent + '% of blockchain from network');
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user