erigon-pulse/cmd/state/commands/verify_txlookup.go
2023-07-09 08:04:20 +01:00

22 lines
508 B
Go

package commands
import (
"github.com/ledgerwatch/erigon/cmd/state/verify"
"github.com/ledgerwatch/erigon/turbo/debug"
"github.com/spf13/cobra"
)
func init() {
withDataDir(verifyTxLookupCmd)
rootCmd.AddCommand(verifyTxLookupCmd)
}
var verifyTxLookupCmd = &cobra.Command{
Use: "verifyTxLookup",
Short: "Generate tx lookup index",
RunE: func(cmd *cobra.Command, args []string) error {
logger := debug.SetupCobra(cmd, "verify_txlookup")
return verify.ValidateTxLookups(chaindata, logger)
},
}