erigon-pulse/cmd/state/commands/verify_headers_snapshot.go

23 lines
494 B
Go
Raw Normal View History

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)
},
}