erigon-pulse/cmd/state/commands/regenerate_txlookup.go
b00ris b4ba764fb1
[WIP] TxLookup stage (#646)
* 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
2020-06-10 23:07:14 +03:00

20 lines
429 B
Go

package commands
import (
"github.com/ledgerwatch/turbo-geth/cmd/state/generate"
"github.com/spf13/cobra"
)
func init() {
withChaindata(regenerateTxLookupCmd)
rootCmd.AddCommand(regenerateTxLookupCmd)
}
var regenerateTxLookupCmd = &cobra.Command{
Use: "regenerateTxLookup",
Short: "Generate tx lookup index",
RunE: func(cmd *cobra.Command, args []string) error {
return generate.RegenerateTxLookup(chaindata)
},
}