We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e098b4 commit 32abe69Copy full SHA for 32abe69
consensus/types/src/beacon_state/committee_cache.rs
@@ -174,7 +174,7 @@ impl CommitteeCache {
174
.ok_or(Error::CommitteeCacheUninitialized(None))?;
175
176
initialized_epoch.slot_iter(self.slots_per_epoch).try_fold(
177
- Vec::with_capacity(self.slots_per_epoch as usize),
+ Vec::with_capacity(self.epoch_committee_count()),
178
|mut vec, slot| {
179
vec.append(&mut self.get_beacon_committees_at_slot(slot)?);
180
Ok(vec)
0 commit comments