historical_states_reader

package
v1.9.7-0...-2fcf729 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 License: LGPL-3.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HistoricalStatesReader

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

func (*HistoricalStatesReader) ComputeCommittee

func (r *HistoricalStatesReader) ComputeCommittee(mix libcommon.Hash, indicies []uint64, slot uint64, count, index uint64) ([]uint64, error)

computeCommittee uses cache to compute compittee

func (*HistoricalStatesReader) ReadHistoricalState

func (r *HistoricalStatesReader) ReadHistoricalState(ctx context.Context, tx kv.Tx, slot uint64) (*state.CachingBeaconState, error)

func (*HistoricalStatesReader) ReadParticipations

readParticipations shuffles active indicies and returns the participation flags for the given epoch.

func (*HistoricalStatesReader) ReadRandaoMixBySlotAndIndex

func (r *HistoricalStatesReader) ReadRandaoMixBySlotAndIndex(tx kv.Tx, kvGetter state_accessors.GetValFn, slot, index uint64) (common.Hash, error)

func (*HistoricalStatesReader) ReadValidatorsBalances

func (r *HistoricalStatesReader) ReadValidatorsBalances(tx kv.Tx, kvGetter state_accessors.GetValFn, slot uint64) (solid.Uint64ListSSZ, error)

func (*HistoricalStatesReader) ReadValidatorsForHistoricalState

func (r *HistoricalStatesReader) ReadValidatorsForHistoricalState(tx kv.Tx, kvGetter state_accessors.GetValFn, slot uint64) (*solid.ValidatorSet, error)

func (*HistoricalStatesReader) ReconstructUint64ListDump

func (r *HistoricalStatesReader) ReconstructUint64ListDump(kvGetter state_accessors.GetValFn, slot uint64, bkt string, size int, out solid.Uint64ListSSZ) error

Jump to

Keyboard shortcuts

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