2020-04-28 07:41:55 +00:00
|
|
|
package commands
|
|
|
|
|
|
|
|
import (
|
2021-05-20 18:25:53 +00:00
|
|
|
"github.com/ledgerwatch/erigon/cmd/state/verify"
|
2020-04-28 07:41:55 +00:00
|
|
|
"github.com/spf13/cobra"
|
|
|
|
)
|
|
|
|
|
|
|
|
func init() {
|
2022-02-22 17:39:48 +00:00
|
|
|
withDataDir(checkEncCmd)
|
2020-04-28 07:41:55 +00:00
|
|
|
withStatsfile(checkEncCmd)
|
|
|
|
rootCmd.AddCommand(checkEncCmd)
|
|
|
|
}
|
|
|
|
|
|
|
|
var checkEncCmd = &cobra.Command{
|
|
|
|
Use: "checkEnc",
|
|
|
|
Short: "Check changesets Encoding",
|
|
|
|
RunE: func(cmd *cobra.Command, args []string) error {
|
2020-05-23 09:19:56 +00:00
|
|
|
return verify.CheckEnc(chaindata)
|
2020-04-28 07:41:55 +00:00
|
|
|
},
|
|
|
|
}
|