mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-25 21:17:16 +00:00
b4ba764fb1
* save state * txlookup full results * save state * save state * remove experiments * some fix&lint * add end key to txLookup and index generation * change log message * change log * fix lint * lint * fix test
21 lines
504 B
Go
21 lines
504 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))
|
|
},
|
|
}
|