Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsensusInfoAccessDatabase ¶
type ConsensusInfoAccessDatabase interface { ReadOnlyConsensusInfoDatabase SaveConsensusInfo(ctx context.Context, consensusInfo *types.MinimalEpochConsensusInfo) error SaveLatestEpoch(ctx context.Context) error }
ConsensusInfoAccessDatabase
type Database ¶
type Database interface { io.Closer ConsensusInfoAccessDatabase VerifiedSlotDatabase InvalidSlotDatabase DatabasePath() string ClearDB() error }
Database interface with full access.
type InvalidSlotDatabase ¶
type InvalidSlotDatabase interface { ReadOnlyInvalidSlotInfoDatabase SaveInvalidSlotInfo(slot uint64, slotInfo *types.SlotInfo) error }
type ReadOnlyConsensusInfoDatabase ¶
type ReadOnlyConsensusInfoDatabase interface { ConsensusInfo(ctx context.Context, epoch uint64) (*types.MinimalEpochConsensusInfo, error) ConsensusInfos(fromEpoch uint64) ([]*types.MinimalEpochConsensusInfo, error) LatestSavedEpoch() uint64 GetLatestEpoch() uint64 }
ReadOnlyDatabase defines a struct which only has read access to database methods.
type ReadOnlyVerifiedSlotInfoDatabase ¶
type ReadOnlyVerifiedSlotInfoDatabase interface { VerifiedSlotInfo(slot uint64) (*types.SlotInfo, error) VerifiedSlotInfos(fromSlot uint64) (map[uint64]*types.SlotInfo, error) LatestSavedVerifiedSlot() uint64 InMemoryLatestVerifiedSlot() uint64 LatestVerifiedHeaderHash() common.Hash InMemoryLatestVerifiedHeaderHash() common.Hash }
Click to show internal directories.
Click to hide internal directories.