Skip to content

Commit

Permalink
rem
Browse files Browse the repository at this point in the history
  • Loading branch information
rauljordan committed Sep 1, 2022
1 parent 65a0034 commit fc5539b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
6 changes: 0 additions & 6 deletions beacon-chain/sync/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,6 @@ var (
})

// Attestation and block gossip verification performance.
unaggregatedAttestationVerificationGossipSummary = promauto.NewSummary(
prometheus.SummaryOpts{
Name: "gossip_unaggregate_attestation_verification_milliseconds",
Help: "Time to verify gossiped, unaggregated attestations",
},
)
aggregateAttestationVerificationGossipSummary = promauto.NewSummary(
prometheus.SummaryOpts{
Name: "gossip_aggregate_attestation_verification_milliseconds",
Expand Down
4 changes: 0 additions & 4 deletions beacon-chain/sync/validate_beacon_attestation.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import (
"github.com/prysmaticlabs/prysm/v3/monitoring/tracing"
eth "github.com/prysmaticlabs/prysm/v3/proto/prysm/v1alpha1"
"github.com/prysmaticlabs/prysm/v3/proto/prysm/v1alpha1/attestation"
prysmTime "github.com/prysmaticlabs/prysm/v3/time"
"github.com/prysmaticlabs/prysm/v3/time/slots"
"go.opencensus.io/trace"
)
Expand All @@ -33,7 +32,6 @@ import (
// - attestation.data.slot is within the last ATTESTATION_PROPAGATION_SLOT_RANGE slots (attestation.data.slot + ATTESTATION_PROPAGATION_SLOT_RANGE >= current_slot >= attestation.data.slot).
// - The signature of attestation is valid.
func (s *Service) validateCommitteeIndexBeaconAttestation(ctx context.Context, pid peer.ID, msg *pubsub.Message) (pubsub.ValidationResult, error) {
receivedTime := prysmTime.Now()
if pid == s.cfg.p2p.PeerID() {
return pubsub.ValidationAccept, nil
}
Expand Down Expand Up @@ -168,8 +166,6 @@ func (s *Service) validateCommitteeIndexBeaconAttestation(ctx context.Context, p

msg.ValidatorData = att

unaggregatedAttestationVerificationGossipSummary.Observe(float64(prysmTime.Since(receivedTime).Milliseconds()))

return pubsub.ValidationAccept, nil
}

Expand Down

0 comments on commit fc5539b

Please sign in to comment.