From e1dcfb6960ae74f14302ecfbb5075e0963066355 Mon Sep 17 00:00:00 2001 From: realbigsean Date: Fri, 10 May 2024 21:15:21 -0400 Subject: [PATCH] update committee offset --- .../state_processing/src/common/get_attesting_indices.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/consensus/state_processing/src/common/get_attesting_indices.rs b/consensus/state_processing/src/common/get_attesting_indices.rs index 9848840e96d..33249c49417 100644 --- a/consensus/state_processing/src/common/get_attesting_indices.rs +++ b/consensus/state_processing/src/common/get_attesting_indices.rs @@ -106,7 +106,7 @@ pub mod attesting_indices_electra { let committee_indices = get_committee_indices::(committee_bits); - let committee_offset = 0; + let mut committee_offset = 0; let committees_map: HashMap = committees .iter() @@ -138,7 +138,7 @@ pub mod attesting_indices_electra { output.extend(committee_attesters); - committee_offset.safe_add(beacon_committee.committee.len())?; + committee_offset.safe_add_assign(beacon_committee.committee.len())?; } else { return Err(Error::NoCommitteeFound(index)); }