Skip to content

Commit

Permalink
rename variable
Browse files Browse the repository at this point in the history
  • Loading branch information
mehdi-aouadi committed Dec 9, 2024
1 parent f9bb956 commit 425db21
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -734,12 +734,12 @@ private Optional<OperationInvalidReason> checkCommittees(
final IntList committee =
beaconStateAccessorsElectra.getBeaconCommittee(state, slot, committeeIndex);
final int currentCommitteeOffset = committeeOffset;
final boolean hasAtLeastOneParticipant =
final boolean committeeHasAtLeastOneAttester =
IntStream.range(0, committee.size())
.anyMatch(
committeeParticipantIndex ->
aggregationBits.isSet(currentCommitteeOffset + committeeParticipantIndex));
if (!hasAtLeastOneParticipant) {
if (!committeeHasAtLeastOneAttester) {
return Optional.of(AttestationInvalidReason.PARTICIPANTS_COUNT_MISMATCH);
}
committeeOffset += committee.size();
Expand Down

0 comments on commit 425db21

Please sign in to comment.