From 1f36e8d5bc4696b369417d15627c461fd951d0e1 Mon Sep 17 00:00:00 2001 From: Tuyen Nguyen Date: Fri, 13 Oct 2023 08:26:55 +0700 Subject: [PATCH] chore: rename variable --- packages/beacon-node/src/sync/sync.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/beacon-node/src/sync/sync.ts b/packages/beacon-node/src/sync/sync.ts index 3da201269aad..9cf7ba9ff716 100644 --- a/packages/beacon-node/src/sync/sync.ts +++ b/packages/beacon-node/src/sync/sync.ts @@ -71,9 +71,9 @@ export class BeaconSync implements IBeaconSync { // So we are adding a particular delay to ensure that the `unknownBlockSync` is enabled. const syncStartSlot = this.chain.clock.currentSlot; // Having one epoch time for the node to connect to peers and start a syncing process - const epochCheckFotSyncSlot = syncStartSlot + SLOTS_PER_EPOCH; + const epochCheckForSyncSlot = syncStartSlot + SLOTS_PER_EPOCH; const initiateEpochCheckForSync = (): void => { - if (this.chain.clock.currentSlot > epochCheckFotSyncSlot) { + if (this.chain.clock.currentSlot > epochCheckForSyncSlot) { this.logger.info("Initiating epoch check for sync progress"); this.chain.clock.off(ClockEvent.slot, initiateEpochCheckForSync); this.chain.clock.on(ClockEvent.epoch, this.onClockEpoch);