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

22 lines
487 B
Go
Raw Normal View History

package commands
import (
"github.com/ledgerwatch/turbo-geth/cmd/state/stateless"
"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 stateless.CheckIndex(chaindata, []byte(changeSetBucket), []byte(indexBucket))
},
}