From 5b6fdbeb6fff63c8174f704538f1341a8fd21529 Mon Sep 17 00:00:00 2001 From: Joost Jager Date: Fri, 8 Mar 2019 10:33:40 +0100 Subject: [PATCH] lncli: fix command line argument parsing for sendpayment This commit fixes a bug that caused the payment hash to be (re)parsed as an int representing the final cltv delta. --- cmd/lncli/commands.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/lncli/commands.go b/cmd/lncli/commands.go index 419ecb45..35dd5faf 100644 --- a/cmd/lncli/commands.go +++ b/cmd/lncli/commands.go @@ -2121,6 +2121,7 @@ func sendPayment(ctx *cli.Context) error { rHash, err = hex.DecodeString(ctx.String("payment_hash")) case args.Present(): rHash, err = hex.DecodeString(args.First()) + args = args.Tail() default: return fmt.Errorf("payment hash argument missing") }