diff --git a/mod/engine-primitives/pkg/errors/errors.go b/mod/engine-primitives/pkg/errors/errors.go index 60eaffa3a3..c2971f8ebd 100644 --- a/mod/engine-primitives/pkg/errors/errors.go +++ b/mod/engine-primitives/pkg/errors/errors.go @@ -129,6 +129,7 @@ var ( "nil payload status received from execution client", ) - // ErrExecutionClientIsSyncing indicates that the execution client is syncing. + // ErrExecutionClientIsSyncing indicates that the execution client is + // syncing. ErrExecutionClientIsSyncing = errors.New("execution client is syncing") ) diff --git a/mod/execution/pkg/client/client.go b/mod/execution/pkg/client/client.go index f2cdced7af..d8056d3a74 100644 --- a/mod/execution/pkg/client/client.go +++ b/mod/execution/pkg/client/client.go @@ -192,7 +192,11 @@ func (s *EngineClient[ExecutionPayloadDenebT]) syncCheck(ctx context.Context) { ticker := time.NewTicker(s.cfg.SyncCheckInterval) defer ticker.Stop() for { - s.logger.Info("starting sync check rountine", "interval", s.cfg.SyncCheckInterval) + s.logger.Info( + "starting sync check rountine", + "interval", + s.cfg.SyncCheckInterval, + ) select { case <-ticker.C: syncProgress, err := s.SyncProgress(ctx) diff --git a/mod/execution/pkg/client/engine.go b/mod/execution/pkg/client/engine.go index ae6bbbdb16..fbec3fa543 100644 --- a/mod/execution/pkg/client/engine.go +++ b/mod/execution/pkg/client/engine.go @@ -112,9 +112,12 @@ func (s *EngineClient[ExecutionPayloadDenebT]) ForkchoiceUpdated( dctx, cancel := context.WithTimeout(ctx, s.cfg.RPCTimeout) defer cancel() - // If the execution client is syncing, sanitize the payload attributes. + // If the execution client is syncing, sanitize the payload attributes + // as trying to build a block while syncing can be problematic. if errors.Is(s.status(), engineerrors.ErrExecutionClientIsSyncing) { - s.logger.Warn("execution client is syncing, sanitizing payload attributes") + s.logger.Warn( + "execution client is syncing, sanitizing payload attributes", + ) attrs = nil }