We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4981627 commit 2bade22Copy full SHA for 2bade22
core/scheduler/scheduler.go
@@ -769,8 +769,11 @@ func (s *Scheduler) trimEventTriggeredAttestations(epoch uint64) {
769
}
770
771
minSlotToKeep := (epoch + 1) * slotsPerEpoch // first slot of next epoch
772
- s.eventTriggeredAttestations.Range(func(key, value interface{}) bool {
773
- slot := key.(uint64)
+ s.eventTriggeredAttestations.Range(func(key, _ interface{}) bool {
+ slot, ok := key.(uint64)
774
+ if !ok {
775
+ return true // continue iteration
776
+ }
777
if slot < minSlotToKeep {
778
s.eventTriggeredAttestations.Delete(slot)
779
0 commit comments