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 1275cd9 commit 8f291ea
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -734,13 +734,13 @@ private Optional<OperationInvalidReason> checkCommittees(
final IntList committee =
beaconStateAccessorsElectra.getBeaconCommittee(state, slot, committeeIndex);
final int committeeOffset = participantsCount;
final long committeeAttesters =
final long committeeAttesterCount =
IntStream.range(0, committee.size())
.filter(
committeeParticipantIndex ->
aggregationBits.isSet(committeeOffset + committeeParticipantIndex))
.count();
if (committeeAttesters == 0) {
if (committeeAttesterCount == 0) {
return Optional.of(AttestationInvalidReason.PARTICIPANTS_COUNT_MISMATCH);
}
participantsCount += committee.size();
Expand Down

0 comments on commit 8f291ea

Please sign in to comment.