erigon-pulse/cmd/state/commands/check_index.go
Alex Sharov 0be3044b7e
rename (#1978)
* rename

* rename "make grpc"

* rename "abi bindings templates"

* rename "abi bindings templates"
2021-05-20 19:25:53 +01:00

24 lines
539 B
Go

package commands
import (
"github.com/ledgerwatch/erigon/cmd/state/verify"
"github.com/ledgerwatch/erigon/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 {
ctx, _ := utils.RootContext()
return verify.CheckIndex(ctx, chaindata, changeSetBucket, indexBucket)
},
}