From 0dbf5c4e63f7b6f3c87be589710cc9f078ec9abf Mon Sep 17 00:00:00 2001 From: Preston Van Loon Date: Thu, 26 Nov 2020 10:04:18 -0800 Subject: [PATCH] Increase public key cache size for Pyrmont (#7967) Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com> --- shared/bls/blst/public_key.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shared/bls/blst/public_key.go b/shared/bls/blst/public_key.go index ea7a18606..89f747d8d 100644 --- a/shared/bls/blst/public_key.go +++ b/shared/bls/blst/public_key.go @@ -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, })