Fix block indexing log

This commit is contained in:
nymkappa 2022-03-10 14:23:29 +01:00
parent 74d9762821
commit 4f403d3808

View File

@ -218,6 +218,7 @@ class Blocks {
break; break;
} }
++indexedThisRun; ++indexedThisRun;
++totaIndexed;
const elapsedSeconds = Math.max(1, Math.round((new Date().getTime() / 1000) - timer)); const elapsedSeconds = Math.max(1, Math.round((new Date().getTime() / 1000) - timer));
if (elapsedSeconds > 5 || blockHeight === lastBlockToIndex) { if (elapsedSeconds > 5 || blockHeight === lastBlockToIndex) {
const runningFor = Math.max(1, Math.round((new Date().getTime() / 1000) - startedAt)); const runningFor = Math.max(1, Math.round((new Date().getTime() / 1000) - startedAt));