erigon-pulse/cmd/state/commands/verify_headers_snapshot.go
Alex Sharov 0be3044b7e
rename (#1978)
* rename

* rename "make grpc"

* rename "abi bindings templates"

* rename "abi bindings templates"
2021-05-20 19:25:53 +01:00

23 lines
494 B
Go

package commands
import (
"github.com/ledgerwatch/erigon/cmd/state/verify"
"github.com/spf13/cobra"
)
func init() {
withDatadir(verifyHeadersSnapshotCmd)
rootCmd.AddCommand(verifyHeadersSnapshotCmd)
}
var verifyHeadersSnapshotCmd = &cobra.Command{
Use: "verifyHeadersSnapshot",
Short: "Verify headers snapshot",
RunE: func(cmd *cobra.Command, args []string) error {
if chaindata == "" && len(args) > 0 {
chaindata = args[0]
}
return verify.HeadersSnapshot(chaindata)
},
}