Fix block indexing log
This commit is contained in:
parent
74d9762821
commit
4f403d3808
@ -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));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user