Use correct gossip validation time (#13740)

This commit is contained in:
terence 2024-03-13 06:10:18 -10:00 committed by GitHub
parent d6ae838bbf
commit aa63c4e7f2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -123,11 +123,12 @@ func (s *Service) validateBlob(ctx context.Context, pid peer.ID, msg *pubsub.Mes
fields := blobFields(blob)
sinceSlotStartTime := receivedTime.Sub(startTime)
validationTime := s.cfg.clock.Now().Sub(receivedTime)
fields["sinceSlotStartTime"] = sinceSlotStartTime
fields["validationTime"] = s.cfg.clock.Now().Sub(receivedTime)
fields["validationTime"] = validationTime
log.WithFields(fields).Debug("Received blob sidecar gossip")
blobSidecarVerificationGossipSummary.Observe(float64(sinceSlotStartTime.Milliseconds()))
blobSidecarVerificationGossipSummary.Observe(float64(validationTime.Milliseconds()))
blobSidecarArrivalGossipSummary.Observe(float64(sinceSlotStartTime.Milliseconds()))
vBlobData, err := vf.VerifiedROBlob()