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

23 lines
531 B
Go

package commands
import (
"github.com/ledgerwatch/turbo-geth/cmd/state/verify"
"github.com/ledgerwatch/turbo-geth/cmd/utils"
"github.com/spf13/cobra"
)
func init() {
withDatadir(checkIndexCMD)
withIndexBucket(checkIndexCMD)
withCSBucket(checkIndexCMD)
rootCmd.AddCommand(checkIndexCMD)
}
var checkIndexCMD = &cobra.Command{
Use: "checkIndex",
Short: "Index checker",
RunE: func(cmd *cobra.Command, args []string) error {
return verify.CheckIndex(utils.RootContext(), chaindata, changeSetBucket, indexBucket)
},
}