From 25a5bd917f55c1802a5bd924cba98bc56bf82c9b Mon Sep 17 00:00:00 2001 From: Jim McDonald Date: Tue, 18 Mar 2025 10:42:39 +0000 Subject: [PATCH] Support 0 validators for epoch summary. --- cmd/epoch/summary/process.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cmd/epoch/summary/process.go b/cmd/epoch/summary/process.go index 7bd952d..ec60071 100644 --- a/cmd/epoch/summary/process.go +++ b/cmd/epoch/summary/process.go @@ -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]++