From 57d2f02b289a1220c85558a4e5680c8c96ae0431 Mon Sep 17 00:00:00 2001 From: Matt Date: Sun, 23 Mar 2014 22:24:57 -0600 Subject: [PATCH] Show progress is module was spawned without forkid --- lib/pool.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pool.js b/lib/pool.js index d6ba734..7b2e8a3 100644 --- a/lib/pool.js +++ b/lib/pool.js @@ -356,7 +356,7 @@ var pool = module.exports = function pool(options, authorizeFn){ var percent = (currentBlocks / totalBlocks * 100).toFixed(2); //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'); }); };