From ff2be77c0085e30787989e02c1eae5ebc478fd48 Mon Sep 17 00:00:00 2001 From: Wilmer Paulino Date: Wed, 28 Mar 2018 00:50:03 -0400 Subject: [PATCH] cmd/lncli: add `private` flag to addinvoice command --- cmd/lncli/commands.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cmd/lncli/commands.go b/cmd/lncli/commands.go index 91fa0ccd..33c4884b 100644 --- a/cmd/lncli/commands.go +++ b/cmd/lncli/commands.go @@ -1713,6 +1713,12 @@ var addInvoiceCommand = cli.Command{ "specified an expiry of 3600 seconds (1 hour) " + "is implied.", }, + cli.BoolTFlag{ + Name: "private", + Usage: "encode routing hints in the invoice with " + + "private channels in order to assist the " + + "payer in reaching you", + }, }, Action: actionDecorator(addInvoice), } @@ -1771,6 +1777,7 @@ func addInvoice(ctx *cli.Context) error { DescriptionHash: descHash, FallbackAddr: ctx.String("fallback_addr"), Expiry: ctx.Int64("expiry"), + Private: ctx.Bool("private"), } resp, err := client.AddInvoice(context.Background(), invoice)