erigon-pulse/cl/phase1/cache/init.go
2023-06-08 15:52:09 +02:00

14 lines
319 B
Go

package cache
import (
"github.com/ledgerwatch/erigon-lib/common"
"github.com/ledgerwatch/erigon/cl/phase1/core/state/lru"
)
func init() {
var err error
if attestationIndiciesCache, err = lru.New[common.Hash, []uint64]("attestationIndiciesCacheSize", attestationIndiciesCacheSize); err != nil {
panic(err)
}
}