Skip to content

Commit

Permalink
Increase attestation seen cache exp time to two epochs (#14156)
Browse files Browse the repository at this point in the history
  • Loading branch information
terencechain authored Jun 28, 2024
1 parent 5edc64d commit fa37072
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion beacon-chain/operations/attestations/kv/kv.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ type AttCaches struct {
// various kind of attestations.
func NewAttCaches() *AttCaches {
secsInEpoch := time.Duration(params.BeaconConfig().SlotsPerEpoch.Mul(params.BeaconConfig().SecondsPerSlot))
c := cache.New(secsInEpoch*time.Second, 2*secsInEpoch*time.Second)
c := cache.New(2*secsInEpoch*time.Second, 2*secsInEpoch*time.Second)
pool := &AttCaches{
unAggregatedAtt: make(map[attestation.Id]ethpb.Att),
aggregatedAtt: make(map[attestation.Id][]ethpb.Att),
Expand Down

0 comments on commit fa37072

Please sign in to comment.