mirror of
https://github.com/GOSTSec/gostexplr
synced 2025-02-10 22:04:15 +00:00
Pretty print
This commit is contained in:
parent
9017959e7f
commit
4ad36abdc2
@ -293,13 +293,13 @@ async function syncBlockchain() {
|
|||||||
console.log('\x1b[36m%s\x1b[0m', 'syncedHeight is', syncedHeight);
|
console.log('\x1b[36m%s\x1b[0m', 'syncedHeight is', syncedHeight);
|
||||||
|
|
||||||
let currentHeight = await getCurrentHeight();
|
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) {
|
while (syncedHeight < currentHeight) {
|
||||||
syncedHeight = await syncNextBlock(syncedHeight);
|
syncedHeight = await syncNextBlock(syncedHeight);
|
||||||
if (coolstrs) {
|
if (coolstrs) {
|
||||||
for(str of 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 {
|
} else {
|
||||||
console.log('\x1b[36m%s\x1b[0m', 'syncedHeight: ', syncedHeight)
|
console.log('\x1b[36m%s\x1b[0m', 'syncedHeight: ', syncedHeight)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user