erigon-pulse/cl/phase1/cache/init.go

14 lines
319 B
Go
Raw Normal View History

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