mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-25 12:57:18 +00:00
Round robin: half open interval in syncToFinalizedEpoch (#8039)
This commit is contained in:
parent
c090c6a1c5
commit
647b4cf108
@ -69,10 +69,6 @@ func (s *Service) syncToFinalizedEpoch(ctx context.Context, genesis time.Time) e
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
// Step back one slot, to the last slot of the finalized epoch (we're at first slot of the next epoch).
|
||||
if highestFinalizedSlot > 0 {
|
||||
highestFinalizedSlot--
|
||||
}
|
||||
if s.chain.HeadSlot() >= highestFinalizedSlot {
|
||||
// No need to sync, already synced to the finalized slot.
|
||||
log.Debug("Already synced to finalized epoch")
|
||||
|
Loading…
Reference in New Issue
Block a user