Avoid crash if beacon committee subscription information is not present.

Fixes #1
This commit is contained in:
Jim McDonald 2020-10-13 12:40:18 +01:00
parent 469e6a02a3
commit 6845a0ac08
No known key found for this signature in database
GPG Key ID: 89CEB61B2AD2A5E7
2 changed files with 2 additions and 0 deletions

View File

@ -1,4 +1,5 @@
Development
- avoid crash if beacon committee subscription information is not present
- add measurement of validator status fetching operations
- increase maximum block receipt delay metric from 4s to 12s
- add internal ability to list names of all active scheduler jobs

View File

@ -132,6 +132,7 @@ func (s *Service) AttestAndScheduleAggregate(ctx context.Context, data interface
info, exists := slotInfoMap[attestation.Data.Index]
if !exists {
log.Debug().Uint64("attestation_slot", attestation.Data.Slot).Uint64("committee_index", attestation.Data.Index).Msg("No committee info; cannot aggregate")
continue
}
if info.Aggregate {
aggregatorDuty, err := attestationaggregator.NewDuty(ctx, info.ValidatorIndex, info.ValidatorPubKey, attestation, info.Signature)