integrity

package
v1.9.7-0...-c81b736 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 License: LGPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NonDefaultChecks = []Check{
	BorMilestones,
}

Functions

func E3EfFiles

func E3EfFiles(ctx context.Context, chainDB kv.RwDB, agg *state.Aggregator, failFast bool, fromStep uint64) error

func E3HistoryNoSystemTxs

func E3HistoryNoSystemTxs(ctx context.Context, chainDB kv.RwDB, blockReader services.FullBlockReader, agg *state.Aggregator) error

E3 History - usually don't have anything attributed to 1-st system txs (except genesis)

func NoGapsInCanonicalHeaders

func NoGapsInCanonicalHeaders(tx kv.Tx, ctx context.Context, br services.FullBlockReader)

func ReceiptsNoDuplicates

func ReceiptsNoDuplicates(ctx context.Context, db kv.TemporalRoDB, blockReader services.FullBlockReader, failFast bool) (err error)

func SnapBlocksRead

func SnapBlocksRead(ctx context.Context, db kv.RoDB, blockReader services.FullBlockReader, from, to uint64, failFast bool) error

func ValidateBorCheckpoints

func ValidateBorCheckpoints(logger log.Logger, dirs datadir.Dirs, snaps *heimdall.RoSnapshots, failFast bool) error

func ValidateBorEvents

func ValidateBorEvents(ctx context.Context, db kv.RoDB, blockReader services.FullBlockReader, from, to uint64, failFast bool) (err error)

func ValidateBorMilestones

func ValidateBorMilestones(logger log.Logger, dirs datadir.Dirs, snaps *heimdall.RoSnapshots, failFast bool) error

func ValidateBorSpans

func ValidateBorSpans(logger log.Logger, dirs datadir.Dirs, snaps *heimdall.RoSnapshots, failFast bool) error

Types

type Check

type Check string
const (
	Blocks             Check = "Blocks"
	BlocksTxnID        Check = "BlocksTxnID"
	InvertedIndex      Check = "InvertedIndex"
	HistoryNoSystemTxs Check = "HistoryNoSystemTxs"
	ReceiptsNoDups     Check = "ReceiptsNoDups"
	BorEvents          Check = "BorEvents"
	BorSpans           Check = "BorSpans"
	BorCheckpoints     Check = "BorCheckpoints"
	BorMilestones      Check = "BorMilestones" // this check is informational, and we don't run it by default (e.g. gaps may exist but that is ok)
)

Jump to

Keyboard shortcuts

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