mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-27 22:28:21 +00:00
22 lines
465 B
Go
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)
|
|
},
|
|
}
|