erigon-pulse/cmd/state/commands/regenerate_index.go
2020-08-11 06:55:32 +07:00

21 lines
496 B
Go

package commands
import (
"github.com/ledgerwatch/turbo-geth/cmd/state/generate"
"github.com/spf13/cobra"
)
func init() {
withChaindata(regenerateIndexCmd)
withCSBucket(regenerateIndexCmd)
rootCmd.AddCommand(regenerateIndexCmd)
}
var regenerateIndexCmd = &cobra.Command{
Use: "regenerateIndex",
Short: "Generate index for accounts/storage based on changesets",
RunE: func(cmd *cobra.Command, args []string) error {
return generate.RegenerateIndex(chaindata, changeSetBucket)
},
}