mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-09 23:48:06 -05:00
Update committee cache size to 32 (#7018)
* Update committee cache size to 32 * Merge branch 'master' into update-committee-cache-size * Cache: fixed rotating test * Merge branch 'update-committee-cache-size' of github.com:prysmaticlabs/prysm into update-committee-cache-size * Merge refs/heads/master into update-committee-cache-size * Merge refs/heads/master into update-committee-cache-size * Merge refs/heads/master into update-committee-cache-size
This commit is contained in:
5
beacon-chain/cache/committee.go
vendored
5
beacon-chain/cache/committee.go
vendored
@@ -17,9 +17,8 @@ var (
|
||||
ErrNotCommittee = errors.New("object is not a committee struct")
|
||||
|
||||
// maxCommitteesCacheSize defines the max number of shuffled committees on per randao basis can cache.
|
||||
// Due to reorgs, it's good to keep the old cache around for quickly switch over. 10 is a generous
|
||||
// cache size as it considers 3 concurrent branches over 3 epochs.
|
||||
maxCommitteesCacheSize = uint64(10)
|
||||
// Due to reorgs and long finality, it's good to keep the old cache around for quickly switch over.
|
||||
maxCommitteesCacheSize = uint64(32)
|
||||
|
||||
// CommitteeCacheMiss tracks the number of committee requests that aren't present in the cache.
|
||||
CommitteeCacheMiss = promauto.NewCounter(prometheus.CounterOpts{
|
||||
|
||||
Reference in New Issue
Block a user