mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-08 21:08:10 -05:00
19 lines
361 B
Go
19 lines
361 B
Go
package cache
|
|
|
|
import (
|
|
"github.com/OffchainLabs/prysm/v7/beacon-chain/state"
|
|
lru "github.com/hashicorp/golang-lru"
|
|
)
|
|
|
|
func BalanceCacheKey(st state.ReadOnlyBeaconState) (string, error) {
|
|
return balanceCacheKey(st)
|
|
}
|
|
|
|
func MaxCheckpointStateSize() int {
|
|
return maxCheckpointStateSize
|
|
}
|
|
|
|
func (c *CheckpointStateCache) Cache() *lru.Cache {
|
|
return c.cache
|
|
}
|