cmd/devp2p: fix arg check error

This commit is contained in:
bugmaker9371 2024-04-25 12:02:01 +00:00
parent ad4fb2c729
commit e1a0c4fbda

View file

@ -126,7 +126,7 @@ func keyToRecord(ctx *cli.Context) error {
}
func makeRecord(ctx *cli.Context) (*enode.Node, error) {
if ctx.NArg() != 1 {
if ctx.NArg() < 1 {
return nil, errors.New("need key file as argument")
}