check

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckMergedBlocks

func CheckMergedBlocks[B firecore.Block](ctx context.Context, chain *firecore.Chain[B], logger *zap.Logger, storeURL string, fileBlockSize uint64, blockRange types.BlockRange, printDetails PrintDetails) error

func CheckMergedBlocksBatch

func CheckMergedBlocksBatch(
	ctx context.Context,
	sourceStoreURL string,
	destStoreURL string,
	fileBlockSize uint64,
	blockRange types.BlockRange,
) error

CheckMergedBlocksBatch will write a list of base-block-numbers to a store, for merged-blocks-files that are broken or missing broken merged-blocks-files are the ones that contain "empty" blocks (no ID) or unlinkable blocks there could be false positives on unlinkable blocks, though output files are like this: 0000123100.broken 0000123500.missing

func NewCheckCommand

func NewCheckCommand[B firecore.Block](chain *firecore.Chain[B], rootLog *zap.Logger) *cobra.Command

func WalkBlockPrefix

func WalkBlockPrefix(blockRange types.BlockRange, fileBlockSize uint64) string

Types

type PrintDetails

type PrintDetails uint8
const (
	PrintNoDetails PrintDetails = iota
	PrintStats
	PrintFull
)

Jump to

Keyboard shortcuts

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