Skip to content

Commit

Permalink
reduce voting cache size
Browse files Browse the repository at this point in the history
  • Loading branch information
pk910 committed Nov 22, 2024
1 parent dc9cfde commit 4e8824a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion indexer/beacon/epochcache.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ type epochCache struct {
// newEpochCache creates & returns a new instance of epochCache.
// initializes the cache & starts the beacon state loader subroutine.
func newEpochCache(indexer *Indexer) *epochCache {
votesCacheSize := int(indexer.inMemoryEpochs) * 10
votesCacheSize := int(indexer.inMemoryEpochs) * 4
if votesCacheSize < 10 {
votesCacheSize = 10
} else if votesCacheSize > 200 {
Expand Down

0 comments on commit 4e8824a

Please sign in to comment.