Compare commits

...

2 Commits

Author SHA1 Message Date
Preston Van Loon
786ee92be6 Lower log level to debug for "Attestation is too old to broadcast, discarding it" 2024-05-21 15:09:27 -05:00
Preston Van Loon
b2cfb89da3 Increase pubsub message seen TTL to 2 epochs 2024-05-21 15:09:27 -05:00
2 changed files with 4 additions and 2 deletions

View File

@@ -138,12 +138,12 @@ func (s *Service) internalBroadcastAttestation(ctx context.Context, subnet uint6
}
// In the event our attestation is outdated and beyond the
// acceptable threshold, we exit early and do not broadcast it.
currSlot := slots.CurrentSlot(uint64(s.genesisTime.Unix()))
if err := helpers.ValidateAttestationTime(att.GetData().Slot, s.genesisTime, params.BeaconConfig().MaximumGossipClockDisparityDuration()); err != nil {
currSlot := slots.CurrentSlot(uint64(s.genesisTime.Unix()))
log.WithFields(logrus.Fields{
"attestationSlot": att.GetData().Slot,
"currentSlot": currSlot,
}).WithError(err).Warning("Attestation is too old to broadcast, discarding it")
}).WithError(err).Debug("Attestation is too old to broadcast, discarding it")
return
}

View File

@@ -13,6 +13,7 @@ import (
"github.com/pkg/errors"
"github.com/prysmaticlabs/prysm/v5/cmd/beacon-chain/flags"
"github.com/prysmaticlabs/prysm/v5/config/params"
"github.com/prysmaticlabs/prysm/v5/consensus-types/primitives"
"github.com/prysmaticlabs/prysm/v5/encoding/bytesutil"
pbrpc "github.com/prysmaticlabs/prysm/v5/proto/prysm/v1alpha1"
)
@@ -147,6 +148,7 @@ func (s *Service) pubsubOptions() []pubsub.Option {
pubsub.WithPeerScoreInspect(s.peerInspector, time.Minute),
pubsub.WithGossipSubParams(pubsubGossipParam()),
pubsub.WithRawTracer(gossipTracer{host: s.host}),
pubsub.WithSeenMessagesTTL(time.Duration(params.BeaconConfig().SlotsPerEpoch*primitives.Slot(params.BeaconConfig().SecondsPerSlot)) * 2),
}
if len(s.cfg.StaticPeers) > 0 {