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) FindBeaconStateWithinSyncPeriod(slot, boundary uint64, findMin bool) (StoredBeaconData, error)
- func (s *Store) GetBeaconStateData(slot uint64) ([]byte, error)
- func (s *Store) PruneOldStates() ([]uint64, error)
- func (s *Store) ReadStateFile(filename string) ([]byte, error)
- 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) FindBeaconStateWithinSyncPeriod ¶
func (s *Store) FindBeaconStateWithinSyncPeriod(slot, boundary uint64, findMin bool) (StoredBeaconData, error)
FindBeaconStateWithinSyncPeriod finds an attested and a finalized header pair within the same sync period. bool findMin specifies whether the largest or smallest slot should be found. if findMin = true, the earliest block in the sync committee will be returned, otherwise the largest. This is used for FinalizedUpdates, where the latest block ideally wants to be synced, and for SyncCommitteeUpdates, where the earliest slot with the next sync committee wants to be located.
func (*Store) GetBeaconStateData ¶
GetBeaconStateData finds a beacon state at a slot.
func (*Store) PruneOldStates ¶
Click to show internal directories.
Click to hide internal directories.