mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-30 12:47:05 +00:00
Rename func for clarity
This commit is contained in:
@@ -4931,7 +4931,7 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
|
||||
let cached_shuffling = CachedShuffling::new(committee_cache.clone(), ptcs);
|
||||
self.shuffling_cache
|
||||
.write()
|
||||
.insert_committee_cache_with_ptc(shuffling_id, cached_shuffling, &self.spec)?;
|
||||
.insert_committee_cache_with_ptcs(shuffling_id, cached_shuffling, &self.spec)?;
|
||||
}
|
||||
}
|
||||
Ok(())
|
||||
|
||||
@@ -188,14 +188,14 @@ impl<E: EthSpec> ShufflingCache<E> {
|
||||
committee_cache: &C,
|
||||
spec: &ChainSpec,
|
||||
) -> Result<(), BeaconChainError> {
|
||||
self.insert_committee_cache_with_ptc(
|
||||
self.insert_committee_cache_with_ptcs(
|
||||
key,
|
||||
CachedShuffling::new(committee_cache.to_arc_committee_cache(), None),
|
||||
spec,
|
||||
)
|
||||
}
|
||||
|
||||
pub fn insert_committee_cache_with_ptc(
|
||||
pub fn insert_committee_cache_with_ptcs(
|
||||
&mut self,
|
||||
key: AttestationShufflingId,
|
||||
cached_shuffling: CachedShuffling<E>,
|
||||
@@ -441,7 +441,7 @@ where
|
||||
|
||||
shuffling_cache_lock
|
||||
.write()
|
||||
.insert_committee_cache_with_ptc(shuffling_id, cached_shuffling.clone(), spec)?;
|
||||
.insert_committee_cache_with_ptcs(shuffling_id, cached_shuffling.clone(), spec)?;
|
||||
|
||||
metrics::stop_timer(committee_building_timer);
|
||||
|
||||
|
||||
@@ -416,7 +416,7 @@ fn advance_head<T: BeaconChainTypes>(beacon_chain: &Arc<BeaconChain<T>>) -> Resu
|
||||
beacon_chain
|
||||
.shuffling_cache
|
||||
.write()
|
||||
.insert_committee_cache_with_ptc(
|
||||
.insert_committee_cache_with_ptcs(
|
||||
shuffling_id.clone(),
|
||||
cached_shuffling,
|
||||
&beacon_chain.spec,
|
||||
|
||||
Reference in New Issue
Block a user