Skip to content

Commit

Permalink
Stop committee duty if no beacon duties exist.
Browse files Browse the repository at this point in the history
  • Loading branch information
y0sher authored Jul 16, 2024
1 parent 6973ee2 commit 97f3d6f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions protocol/v2/ssv/validator/committee.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,10 @@ func (c *Committee) StartDuty(logger *zap.Logger, duty *spectypes.CommitteeDuty)
}
}

if len(duty.BeaconDuties) == 0 {
return errors.New("CommitteeDuty has no valid beacon duties")
}

r := c.CreateRunnerFn(duty.Slot, validatorShares)
// Set timeout function.
r.GetBaseRunner().TimeoutF = c.onTimeout
Expand Down

0 comments on commit 97f3d6f

Please sign in to comment.