Increase public key cache size for Pyrmont (#7967)

Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
This commit is contained in:
Preston Van Loon 2020-11-26 10:04:18 -08:00 committed by GitHub
parent c456dcdce8
commit 0dbf5c4e63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,10 +13,10 @@ import (
"github.com/prysmaticlabs/prysm/shared/params"
)
var maxKeys = int64(100000)
var maxKeys = int64(1000000)
var pubkeyCache, _ = ristretto.NewCache(&ristretto.Config{
NumCounters: maxKeys,
MaxCost: 1 << 22, // ~4mb is cache max size
MaxCost: 1 << 26, // ~64mb is cache max size
BufferItems: 64,
})