diff --git a/pkg/beacon/default.go b/pkg/beacon/default.go index fb766ba..41e96ea 100644 --- a/pkg/beacon/default.go +++ b/pkg/beacon/default.go @@ -155,7 +155,7 @@ func (d *Default) Start(ctx context.Context) error { node.Beacon.OnReady(ctx, func(ctx context.Context, _ *beacon.ReadyEvent) error { node.Beacon.Wallclock().OnEpochChanged(func(epoch ethwallclock.Epoch) { - time.Sleep(time.Second * 15) + time.Sleep(time.Second * 5) if _, err := node.Beacon.FetchFinality(ctx, "head"); err != nil { logCtx.WithError(err).Error("Failed to fetch finality after epoch transition") @@ -164,6 +164,10 @@ func (d *Default) Start(ctx context.Context) error { if err := d.checkFinality(ctx); err != nil { logCtx.WithError(err).Error("Failed to check finality") } + + if err := d.checkForNewServingCheckpoint(ctx); err != nil { + logCtx.WithError(err).Error("Failed to check for new serving checkpoint after epoch change") + } }) return nil