From 7c4950832ca1626cedfce84f1518ec9c2fffb2d6 Mon Sep 17 00:00:00 2001 From: Preston Van Loon Date: Mon, 3 Feb 2020 21:00:21 -0800 Subject: [PATCH] Increase BLS pubkey cache to 100k from 10k (#4737) * Increase BLS pubkey cache to 100k from 10k --- shared/bls/bls.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/bls/bls.go b/shared/bls/bls.go index d95bad960..89326c7fa 100644 --- a/shared/bls/bls.go +++ b/shared/bls/bls.go @@ -24,7 +24,7 @@ func init() { bls12.SetETHserialization(true) } -var maxKeys = int64(10000) +var maxKeys = int64(100000) var pubkeyCache, _ = ristretto.NewCache(&ristretto.Config{ NumCounters: maxKeys, MaxCost: 1 << 19, // 500 kb is cache max size