Documentation ¶
Index ¶
- Constants
- type BeaconState
- type BeaconStore
- type Store
- func (s *Store) Close()
- func (s *Store) Connect() error
- func (s *Store) DeleteStateFile(filename string) error
- func (s *Store) FindBeaconStateWithinRange(minSlot, maxSlot uint64) (StoredBeaconData, error)
- func (s *Store) GetBeaconStateData(slot uint64) ([]byte, error)
- func (s *Store) ListBeaconStates() ([]BeaconState, error)
- func (s *Store) PruneOldStates() ([]uint64, error)
- func (s *Store) ReadStateFile(filename string) ([]byte, error)
- func (s *Store) StateFileExists(filename string) bool
- func (s *Store) WriteEntry(attestedSlot, finalizedSlot uint64, ...) error
- type StoredBeaconData
Constants ¶
View Source
const BeaconStateDir = "states"
View Source
const BeaconStateFilename = "beacon_state_%d.ssz"
View Source
const BeaconStoreName = "beacon-state"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BeaconState ¶
type BeaconStore ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) DeleteStateFile ¶
func (*Store) FindBeaconStateWithinRange ¶
func (s *Store) FindBeaconStateWithinRange(minSlot, maxSlot uint64) (StoredBeaconData, error)
FindBeaconStateWithinRange finds a finalized and attested beacon header pair within the provided range.
func (*Store) GetBeaconStateData ¶
GetBeaconStateData finds a beacon state at a slot.
func (*Store) ListBeaconStates ¶
func (s *Store) ListBeaconStates() ([]BeaconState, error)
func (*Store) PruneOldStates ¶
func (*Store) StateFileExists ¶
Click to show internal directories.
Click to hide internal directories.