From 425db21ce9c1ad1ec12d08c82da67c7efc8e8ff8 Mon Sep 17 00:00:00 2001 From: Mehdi AOUADI Date: Mon, 9 Dec 2024 17:15:12 +0100 Subject: [PATCH] rename variable --- .../logic/versions/electra/block/BlockProcessorElectra.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 f49cd04fb86..8693f37efc0 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,12 +734,12 @@ private Optional 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();