Restore whimsy

This commit is contained in:
Michael Sproul
2026-05-14 22:49:52 +10:00
parent c03c045f8b
commit fd56cc81c6

View File

@@ -170,7 +170,8 @@ impl<E: EthSpec> ShufflingCache<E> {
if self if self
.cache .cache
.get(&key) .get(&key)
// Replace the cached shuffling if it's not present or if it's a promise. // 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!
.is_none_or(CacheItem::is_promise) .is_none_or(CacheItem::is_promise)
{ {
self.insert_cache_item(key, CacheItem::Committee(cached_shuffling)); self.insert_cache_item(key, CacheItem::Committee(cached_shuffling));