Increase BLS pubkey cache to 100k from 10k (#4737)

* Increase BLS pubkey cache to 100k from 10k
This commit is contained in:
Preston Van Loon 2020-02-03 21:00:21 -08:00 committed by GitHub
parent ce0b55d13e
commit 7c4950832c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,7 +24,7 @@ func init() {
bls12.SetETHserialization(true) bls12.SetETHserialization(true)
} }
var maxKeys = int64(10000) var maxKeys = int64(100000)
var pubkeyCache, _ = ristretto.NewCache(&ristretto.Config{ var pubkeyCache, _ = ristretto.NewCache(&ristretto.Config{
NumCounters: maxKeys, NumCounters: maxKeys,
MaxCost: 1 << 19, // 500 kb is cache max size MaxCost: 1 << 19, // 500 kb is cache max size