erigon-pulse/cmd/state/commands/check_enc.go
battlmonstr e6c056e666
Rename Datadir/dataDir to follow conventions. (#3576)
* rename from Datadir to DataDir (functions and public vars)
* rename dataDir to datadir (local variables)
2022-02-22 17:39:48 +00:00

21 lines
398 B
Go

package commands
import (
"github.com/ledgerwatch/erigon/cmd/state/verify"
"github.com/spf13/cobra"
)
func init() {
withDataDir(checkEncCmd)
withStatsfile(checkEncCmd)
rootCmd.AddCommand(checkEncCmd)
}
var checkEncCmd = &cobra.Command{
Use: "checkEnc",
Short: "Check changesets Encoding",
RunE: func(cmd *cobra.Command, args []string) error {
return verify.CheckEnc(chaindata)
},
}