Skip to content

Commit

Permalink
Update beacon-chain/sync/validate_aggregate_proof.go
Browse files Browse the repository at this point in the history
Co-authored-by: Sammy Rosso <[email protected]>
  • Loading branch information
terencechain and saolyn committed Jan 20, 2024
1 parent b96221d commit 8c229cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion beacon-chain/sync/validate_aggregate_proof.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ func validateIndexInCommittee(ctx context.Context, bs state.ReadOnlyBeaconState,
return err
}
cc := helpers.SlotCommitteeCount(ac)
if uint64(a.Data.CommitteeIndex) >= helpers.SlotCommitteeCount(ac) {
if uint64(a.Data.CommitteeIndex) >= cc {
return fmt.Errorf("committee index %d is greater than committee count %d",
a.Data.CommitteeIndex, cc)
}
Expand Down

0 comments on commit 8c229cb

Please sign in to comment.