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