mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-31 16:21:21 +00:00
22 lines
508 B
Go
22 lines
508 B
Go
package commands
|
|
|
|
import (
|
|
"github.com/ledgerwatch/erigon/cmd/state/verify"
|
|
"github.com/ledgerwatch/erigon/turbo/debug"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
func init() {
|
|
withDataDir(verifyTxLookupCmd)
|
|
rootCmd.AddCommand(verifyTxLookupCmd)
|
|
}
|
|
|
|
var verifyTxLookupCmd = &cobra.Command{
|
|
Use: "verifyTxLookup",
|
|
Short: "Generate tx lookup index",
|
|
RunE: func(cmd *cobra.Command, args []string) error {
|
|
logger := debug.SetupCobra(cmd, "verify_txlookup")
|
|
return verify.ValidateTxLookups(chaindata, logger)
|
|
},
|
|
}
|