Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockServer ¶
type BlockServer interface { versiondb.Commitable // Note: this is a contention heavy call that should be avoided // for frequent/repeated indexer ops GetFullPostForkBlock(ctx context.Context, blkID ids.ID) (snowman.Block, error) }
BlockServer represents all requests heightIndexer can issue against ProposerVM. All methods must be thread-safe.
type HeightIndexer ¶
type HeightIndexer interface { // Returns whether the height index is fully repaired. IsRepaired() bool // MarkRepaired atomically sets the indexing repaired state. MarkRepaired(isRepaired bool) // Resumes repairing of the height index from the checkpoint. RepairHeightIndex(context.Context) error }
func NewHeightIndexer ¶
func NewHeightIndexer( server BlockServer, log logging.Logger, indexState state.State, ) HeightIndexer
Click to show internal directories.
Click to hide internal directories.