Support 0 validators for epoch summary.

This commit is contained in:
Jim McDonald
2025-03-18 10:42:39 +00:00
parent 889a884f6e
commit 25a5bd917f

View File

@@ -556,8 +556,10 @@ func (c *command) processSyncCommitteeDuties(ctx context.Context) error {
for i := range aggregate.SyncCommitteeBits.Len() {
validatorIndex := committee.Validators[int(i)]
if _, exists := c.validators[validatorIndex]; !exists {
// Not one of ours.
continue
if len(c.validators) > 0 {
// Not one of ours.
continue
}
}
if !aggregate.SyncCommitteeBits.BitAt(i) {
missed[validatorIndex]++