erigon-pulse/cmd/state/commands/verify_txlookup.go

23 lines
565 B
Go
Raw Normal View History

package commands
import (
"github.com/ledgerwatch/erigon/cmd/state/verify"
"github.com/ledgerwatch/erigon/turbo/debug"
"github.com/spf13/cobra"
)
func init() {
withDataDir(verifyTxLookupCmd)
2023-12-27 22:05:09 +00:00
withSnapshotVersion(verifyTxLookupCmd)
rootCmd.AddCommand(verifyTxLookupCmd)
}
var verifyTxLookupCmd = &cobra.Command{
Use: "verifyTxLookup",
Short: "Generate tx lookup index",
RunE: func(cmd *cobra.Command, args []string) error {
2023-07-09 07:04:20 +00:00
logger := debug.SetupCobra(cmd, "verify_txlookup")
2023-12-27 22:05:09 +00:00
return verify.ValidateTxLookups(chaindata, snapshotVersion, logger)
},
}