diff --git a/ethereum/spec/src/main/java/tech/pegasys/teku/spec/logic/versions/electra/block/BlockProcessorElectra.java b/ethereum/spec/src/main/java/tech/pegasys/teku/spec/logic/versions/electra/block/BlockProcessorElectra.java index 5e9b1486226..49d63c1b4a7 100644 --- a/ethereum/spec/src/main/java/tech/pegasys/teku/spec/logic/versions/electra/block/BlockProcessorElectra.java +++ b/ethereum/spec/src/main/java/tech/pegasys/teku/spec/logic/versions/electra/block/BlockProcessorElectra.java @@ -734,13 +734,13 @@ private Optional 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();