tools

package
v1.18.7 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2026 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrActionNoMatch      = errors.New("action no match")
	ErrReceiptNoMatch     = errors.New("receipt no match")
	ErrTransactionNoMatch = errors.New("transaction no match")
)
View Source
var BackfillAuthorization = &cli.Command{
	Name:  "backfill-authorization",
	Usage: "Backfill authorization table from existing action_type.auth_list (type-4 txs)",
	Flags: []cli.Flag{
		&cli.IntFlag{Name: "batch", Value: 100, Usage: "rows to process per batch"},
		&cli.BoolFlag{Name: "recompute-validity", Usage: "Recompute the Valid column for existing authorization rows instead of inserting from action_type"},
		&cli.BoolFlag{Name: "force", Usage: "With --recompute-validity, also recompute rows that already have a Valid value (default: only NULL rows)"},
	},
	Action: backfillAuthorization,
}
View Source
var VerifyDB = &cli.Command{
	Name:        "verify_db",
	Usage:       "verify_db --start=<startBlkNum> --end=<endBlkNum> --worker <workerSize>",
	Description: "verify_db will verify the db by blkNum",
	Flags: []cli.Flag{
		&cli.Uint64Flag{
			Name:  "start",
			Usage: "start block number",
			Value: 1,
		},
		&cli.Uint64Flag{
			Name:  "end",
			Usage: "end block number",
			Value: 1,
		},
		&cli.IntFlag{
			Name:  "worker",
			Usage: "worker thread num",
			Value: runtime.NumCPU(),
		},
	},
	Action: verifyDB,
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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