mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-01 00:31:21 +00:00
41ee460a27
* optimize codeBitmap * add lru * remove custom lru * jumpDests as explocit parameter * lint * lint * linters * default jumpDestsCache * remove common.rand
31 lines
758 B
Go
31 lines
758 B
Go
package commands
|
|
|
|
import (
|
|
"github.com/ledgerwatch/turbo-geth/cmd/state/verify"
|
|
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var (
|
|
exportFilePath string
|
|
)
|
|
|
|
func init() {
|
|
withChaindata(verifyExportCmd)
|
|
must(verifyExportCmd.MarkFlagRequired("chaindata"))
|
|
|
|
verifyExportCmd.Flags().StringVarP(&exportFilePath, "file", "f", "", "path to the export file used as input to analysis")
|
|
must(verifyExportCmd.MarkFlagFilename("file", ""))
|
|
must(verifyExportCmd.MarkFlagRequired("file"))
|
|
|
|
rootCmd.AddCommand(verifyExportCmd)
|
|
}
|
|
|
|
var verifyExportCmd = &cobra.Command{
|
|
Use: "verifyExportFile",
|
|
Short: "Verifies snapshots generated by `geth export` against chaindata",
|
|
RunE: func(_ *cobra.Command, _ []string) error {
|
|
return verify.ExportFile(exportFilePath, chaindata)
|
|
},
|
|
}
|