mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-08 18:51:19 +00:00
sync only up to previous epoch on phase 1 (#13083)
Co-authored-by: Nishant Das <nishdas93@gmail.com>
This commit is contained in:
parent
823f8ee3a2
commit
65ce27292c
@ -62,7 +62,7 @@ func (s *Service) roundRobinSync(genesis time.Time) error {
|
|||||||
|
|
||||||
// syncToFinalizedEpoch sync from head to best known finalized epoch.
|
// syncToFinalizedEpoch sync from head to best known finalized epoch.
|
||||||
func (s *Service) syncToFinalizedEpoch(ctx context.Context, genesis time.Time) error {
|
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 {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user