indexer

package
v1.7.5-rc.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2022 License: BSD-3-Clause Imports: 10 Imported by: 0

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

	GetWrappingBlk(blkID ids.ID) (WrappingBlock, 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

	// Resumes repairing of the height index from the checkpoint.
	RepairHeightIndex(context.Context) error
}

func NewHeightIndexer

func NewHeightIndexer(
	server BlockServer,
	log logging.Logger,
	indexState state.HeightIndex,
) HeightIndexer

type WrappingBlock

type WrappingBlock interface {
	snowman.Block

	GetInnerBlk() snowman.Block
}

WrappingBlock represents the functionalities HeightIndexer needs out of a PostForkBlock

Jump to

Keyboard shortcuts

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