mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-01 00:31:21 +00:00
0be3044b7e
* rename * rename "make grpc" * rename "abi bindings templates" * rename "abi bindings templates"
24 lines
539 B
Go
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)
|
|
},
|
|
}
|