erigon-pulse/cmd/state/commands/check_index.go
2020-08-11 06:55:32 +07:00

22 lines
465 B
Go

package commands
import (
"github.com/ledgerwatch/turbo-geth/cmd/state/verify"
"github.com/spf13/cobra"
)
func init() {
withChaindata(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(chaindata, changeSetBucket, indexBucket)
},
}