Show progress is module was spawned without forkid

This commit is contained in:
Matt 2014-03-23 22:24:57 -06:00
parent 29dde67bf7
commit 57d2f02b28

View File

@ -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');
}); });
}; };