Fix erigon version miss git commit (#3738)

This commit is contained in:
EXEC 2022-03-19 10:36:00 +08:00 committed by GitHub
parent ec4b5e6c6f
commit a6ff889db9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,7 +17,7 @@ import (
// * action: the main function for the application. receives `*cli.Context` with parsed command-line flags. Returns no error, if some error could not be recovered from write to the log or panic. // * action: the main function for the application. receives `*cli.Context` with parsed command-line flags. Returns no error, if some error could not be recovered from write to the log or panic.
// * cliFlags: the list of flags `cli.Flag` that the app should set and parse. By default, use `DefaultFlags()`. If you want to specify your own flag, use `append(DefaultFlags(), myFlag)` for this parameter. // * cliFlags: the list of flags `cli.Flag` that the app should set and parse. By default, use `DefaultFlags()`. If you want to specify your own flag, use `append(DefaultFlags(), myFlag)` for this parameter.
func MakeApp(action func(*cli.Context), cliFlags []cli.Flag) *cli.App { func MakeApp(action func(*cli.Context), cliFlags []cli.Flag) *cli.App {
app := flags.NewApp("", "", "erigon experimental cli") app := flags.NewApp(params.GitCommit, "", "erigon experimental cli")
app.Action = action app.Action = action
app.Flags = append(cliFlags, debug.Flags...) // debug flags are required app.Flags = append(cliFlags, debug.Flags...) // debug flags are required
app.Before = func(ctx *cli.Context) error { app.Before = func(ctx *cli.Context) error {