From 620e426bc3d597b4384ceb78504cebbe24d4c1d8 Mon Sep 17 00:00:00 2001 From: Conner Fromknecht Date: Thu, 6 May 2021 09:15:43 -0700 Subject: [PATCH] lncli: add --amp flag to invoice command --- cmd/lncli/cmd_invoice.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cmd/lncli/cmd_invoice.go b/cmd/lncli/cmd_invoice.go index 10d1044c..2e133661 100644 --- a/cmd/lncli/cmd_invoice.go +++ b/cmd/lncli/cmd_invoice.go @@ -66,6 +66,11 @@ var addInvoiceCommand = cli.Command{ "private channels in order to assist the " + "payer in reaching you", }, + cli.BoolFlag{ + Name: "amp", + Usage: "creates an AMP invoice. If true, preimage " + + "should not be set.", + }, }, Action: actionDecorator(addInvoice), } @@ -119,6 +124,7 @@ func addInvoice(ctx *cli.Context) error { FallbackAddr: ctx.String("fallback_addr"), Expiry: ctx.Int64("expiry"), Private: ctx.Bool("private"), + IsAmp: ctx.Bool("amp"), } resp, err := client.AddInvoice(ctxc, invoice)