lncli: add --amp flag to invoice command

This commit is contained in:
Conner Fromknecht committed 2021-05-10 16:55:17 -07:00
1 parent 2be874f340
commit 620e426bc3
1 file changed
+6
+6
View File
@@ -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)