Documentation ¶
Index ¶
- func CheckMergedBlocks[B firecore.Block](ctx context.Context, chain *firecore.Chain[B], logger *zap.Logger, ...) error
- func CheckMergedBlocksBatch(ctx context.Context, sourceStoreURL string, destStoreURL string, ...) error
- func NewCheckCommand[B firecore.Block](chain *firecore.Chain[B], rootLog *zap.Logger) *cobra.Command
- func WalkBlockPrefix(blockRange types.BlockRange, fileBlockSize uint64) string
- type PrintDetails
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckMergedBlocks ¶
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 WalkBlockPrefix ¶
func WalkBlockPrefix(blockRange types.BlockRange, fileBlockSize uint64) string
Types ¶
type PrintDetails ¶
type PrintDetails uint8
const ( PrintNoDetails PrintDetails = iota PrintStats PrintFull )
Click to show internal directories.
Click to hide internal directories.