Skip to content

Commit

Permalink
Revert "send notifications from pending att queue"
Browse files Browse the repository at this point in the history
This reverts commit 545408f.
  • Loading branch information
rkapka committed Feb 3, 2025
1 parent 39eab6d commit 1006d25
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions beacon-chain/sync/pending_attestations_queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ import (
pubsub "github.com/libp2p/go-libp2p-pubsub"
"github.com/prysmaticlabs/prysm/v5/async"
"github.com/prysmaticlabs/prysm/v5/beacon-chain/blockchain"
"github.com/prysmaticlabs/prysm/v5/beacon-chain/core/feed"
"github.com/prysmaticlabs/prysm/v5/beacon-chain/core/feed/operation"
"github.com/prysmaticlabs/prysm/v5/beacon-chain/core/helpers"
"github.com/prysmaticlabs/prysm/v5/config/features"
"github.com/prysmaticlabs/prysm/v5/config/params"
Expand Down Expand Up @@ -204,7 +202,6 @@ func (s *Service) processUnaggregated(ctx context.Context, att ethpb.Att) {
log.WithError(err).Debug("Could not retrieve active validator count")
return
}

// Broadcasting the signed attestation again once a node is able to process it.
var attToBroadcast ethpb.Att
if singleAtt != nil {
Expand All @@ -215,24 +212,6 @@ func (s *Service) processUnaggregated(ctx context.Context, att ethpb.Att) {
if err := s.cfg.p2p.BroadcastAttestation(ctx, helpers.ComputeSubnetForAttestation(valCount, attToBroadcast), attToBroadcast); err != nil {
log.WithError(err).Debug("Could not broadcast")
}

// Broadcast the unaggregated attestation on a feed to notify other services in the beacon node
// of a received unaggregated attestation.
if singleAtt != nil {
s.cfg.attestationNotifier.OperationFeed().Send(&feed.Event{
Type: operation.SingleAttReceived,
Data: &operation.SingleAttReceivedData{
Attestation: singleAtt,
},
})
} else {
s.cfg.attestationNotifier.OperationFeed().Send(&feed.Event{
Type: operation.UnaggregatedAttReceived,
Data: &operation.UnAggregatedAttReceivedData{
Attestation: att,
},
})
}
}
}

Expand Down

0 comments on commit 1006d25

Please sign in to comment.