erigon-pulse/cmd/state/commands/check_index.go
Alex Sharov 068463dff4
Store transactions individually (#1358)
* Store transactions individually

* Store transactions individually

* save progress

* checkIndex

* merge
2020-11-22 21:25:26 +00:00

23 lines
533 B
Go

package commands
import (
"github.com/ledgerwatch/turbo-geth/cmd/state/verify"
"github.com/ledgerwatch/turbo-geth/cmd/utils"
"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(utils.RootContext(), chaindata, changeSetBucket, indexBucket)
},
}