erigon-pulse/cmd/state/commands/regenerate_index.go
b00ris 266f9a5208
Plain state index (#595)
* plain state indexes

* generalize index generation&tests

* add plain state tests

* fix regenerate index

* сoncurrent changeset chunks processing

* remove concurrency

* fix lint

* remove comments

* add test to truncate

* fix conflicts

* fmt

* remove shadowing
2020-05-31 07:57:47 +01:00

25 lines
513 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, []byte(changeSetBucket))
},
}
/*
*/