We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f69bc11 + 6480bc5 commit ad99384Copy full SHA for ad99384
packages/beacon-node/src/node/notifier.ts
@@ -92,7 +92,7 @@ export async function runNodeNotifier(modules: NodeNotifierModules): Promise<voi
92
switch (sync.state) {
93
case SyncState.SyncingFinalized:
94
case SyncState.SyncingHead: {
95
- const slotsPerSecond = headSlotTimeSeries.computeLinearSpeed();
+ const slotsPerSecond = Math.max(headSlotTimeSeries.computeLinearSpeed(), 0);
96
const distance = Math.max(clockSlot - headSlot, 0);
97
const secondsLeft = distance / slotsPerSecond;
98
const timeLeft = isFinite(secondsLeft) ? prettyTimeDiffSec(secondsLeft) : "?";
0 commit comments