caches

package
v3.0.0-alpha5.0...-c974331 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2024 License: LGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const MaxShuffledIndiciesCacheSize = 8

Variables

Functions

This section is empty.

Types

type ShuffledIndiciesCache

type ShuffledIndiciesCache struct {
	// contains filtered or unexported fields
}

func NewShuffledIndiciesCache

func NewShuffledIndiciesCache(cap int) *ShuffledIndiciesCache

func (*ShuffledIndiciesCache) Get

func (c *ShuffledIndiciesCache) Get(epoch uint64, root common.Hash) ([]uint64, bool)

func (*ShuffledIndiciesCache) Put

func (c *ShuffledIndiciesCache) Put(epoch uint64, root common.Hash, shuffledSet []uint64)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL