Debug log when new head is not in db (#10591)

This commit is contained in:
terencechain 2022-04-29 14:26:39 -07:00 committed by GitHub
parent 9d2bdfe14d
commit 0faf7ac01f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -166,6 +166,7 @@ func (s *Service) notifyEngineIfChangedHead(ctx context.Context, newHeadRoot [32
}).Debug("Head changed due to attestations")
if !s.hasBlockInInitSyncOrDB(ctx, newHeadRoot) {
log.Debug("New head does not exist in DB. Do nothing")
return // We don't have the block, don't notify the engine and update head.
}