good morning!!!!

Skip to content
Snippets Groups Projects
Commit 76390ef8 authored by Felix Lange's avatar Felix Lange
Browse files

Merge pull request #1966 from karalabe/fix-recover-noparam-panic

cmd/geth: fix recover command crash if no param is supplied
parents 636f67f2 90655736
No related branches found
No related tags found
No related merge requests found
......@@ -542,10 +542,10 @@ func unlockAccount(ctx *cli.Context, am *accounts.Manager, addr string, i int, i
func blockRecovery(ctx *cli.Context) {
utils.CheckLegalese(utils.MustDataDir(ctx))
arg := ctx.Args().First()
if len(ctx.Args()) < 1 && len(arg) > 0 {
if len(ctx.Args()) < 1 {
glog.Fatal("recover requires block number or hash")
}
arg := ctx.Args().First()
cfg := utils.MakeEthConfig(ClientIdentifier, nodeNameVersion, ctx)
utils.CheckLegalese(cfg.DataDir)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment