From 4ad36abdc22aeacdb9468c1c3458088f72a4c506 Mon Sep 17 00:00:00 2001 From: xcps Date: Sun, 17 Mar 2019 00:17:08 +0500 Subject: [PATCH] Pretty print --- bin/syncBlockchain.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/syncBlockchain.js b/bin/syncBlockchain.js index c5a8317..5b16be0 100644 --- a/bin/syncBlockchain.js +++ b/bin/syncBlockchain.js @@ -293,13 +293,13 @@ async function syncBlockchain() { console.log('\x1b[36m%s\x1b[0m', 'syncedHeight is', syncedHeight); let currentHeight = await getCurrentHeight(); - console.log('\x1b[36m%s\x1b[0m', 'currentHeight is', currentHeight); + console.log('\x1b[34m%s\x1b[0m', 'currentHeight is', currentHeight); while (syncedHeight < currentHeight) { syncedHeight = await syncNextBlock(syncedHeight); if (coolstrs) { for(str of coolstrs) { - console.log('\x1b[36m%s\x1b[0m', 'syncedHeight: ', syncedHeight, str) + console.log('\x1b[36m%s\x1b[0m', `syncedHeight: ${syncedHeight}/${currentHeight}`, str) } } else { console.log('\x1b[36m%s\x1b[0m', 'syncedHeight: ', syncedHeight)