Update comment

This commit is contained in:
Michael Sproul
2026-05-19 15:53:16 +10:00
parent 9929ea0da9
commit c30dd6f9c3

View File

@@ -211,8 +211,8 @@ impl<E: EthSpec> ShufflingCache<E> {
cached_shuffling: CachedShuffling<E>,
) -> Result<(), BeaconChainError> {
match self.cache.get(&key) {
Some(CacheItem::Committee(_existing)) => {
// What should we do?
Some(CacheItem::Committee(_)) => {
// 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
// worth two in the promise-bush!