sync only up to previous epoch on phase 1 (#13083)

Co-authored-by: Nishant Das <nishdas93@gmail.com>
This commit is contained in:
Potuz 2023-10-20 13:05:14 -03:00 committed by GitHub
parent 823f8ee3a2
commit 65ce27292c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,7 +62,7 @@ func (s *Service) roundRobinSync(genesis time.Time) error {
// syncToFinalizedEpoch sync from head to best known finalized epoch.
func (s *Service) syncToFinalizedEpoch(ctx context.Context, genesis time.Time) error {
highestFinalizedSlot, err := slots.EpochStart(s.highestFinalizedEpoch() + 1)
highestFinalizedSlot, err := slots.EpochStart(s.highestFinalizedEpoch())
if err != nil {
return err
}