mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-31 05:07:12 +00:00
Update comment
This commit is contained in:
@@ -211,8 +211,8 @@ impl<E: EthSpec> ShufflingCache<E> {
|
|||||||
cached_shuffling: CachedShuffling<E>,
|
cached_shuffling: CachedShuffling<E>,
|
||||||
) -> Result<(), BeaconChainError> {
|
) -> Result<(), BeaconChainError> {
|
||||||
match self.cache.get(&key) {
|
match self.cache.get(&key) {
|
||||||
Some(CacheItem::Committee(_existing)) => {
|
Some(CacheItem::Committee(_)) => {
|
||||||
// What should we do?
|
// Calculation is deterministic, so no need to replace the existing entry.
|
||||||
}
|
}
|
||||||
// Replace the committee if it's not present or if it's a promise. A bird in the hand is
|
// Replace the committee if it's not present or if it's a promise. A bird in the hand is
|
||||||
// worth two in the promise-bush!
|
// worth two in the promise-bush!
|
||||||
|
|||||||
Reference in New Issue
Block a user