Skip to content

Commit

Permalink
impossible false value return
Browse files Browse the repository at this point in the history
  • Loading branch information
mask-pp committed Jan 9, 2025
1 parent 60865c7 commit e91ff74
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions packages/taiko-client/driver/chain_syncer/chain_syncer.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,12 +159,6 @@ func (s *L2ChainSyncer) AheadOfHeadToSync(heightToSync uint64) bool {
return false
}

// If the L2 execution engine's chain is ahead of the block head to sync,
// we can mark the beacon sync progress as finished.
if s.progressTracker.LastSyncedBlockID() != nil {
return s.state.GetL2Head().Number.Uint64() >= s.progressTracker.LastSyncedBlockID().Uint64()
}

return true
}

Expand Down

0 comments on commit e91ff74

Please sign in to comment.