Skip to content

Commit

Permalink
fix: do not warn out-of-synced status at start up (#5708)
Browse files Browse the repository at this point in the history
  • Loading branch information
twoeths authored and philknows committed Jun 28, 2023
1 parent e333260 commit a66b6c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/beacon-node/src/sync/sync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,8 @@ export class BeaconSync implements IBeaconSync {
else if (state !== SyncState.Synced) {
const syncDiff = this.chain.clock.currentSlot - this.chain.forkChoice.getHead().slot;
if (syncDiff > this.slotImportTolerance * 2) {
this.logger.warn(`Node sync has fallen behind by ${syncDiff} slots`);
if (this.network.isSubscribedToGossipCoreTopics()) {
this.logger.warn(`Node sync has fallen behind by ${syncDiff} slots`);
this.network
.unsubscribeGossipCoreTopics()
.then(() => {
Expand Down

0 comments on commit a66b6c0

Please sign in to comment.