Merge pull request #8731 from yyforyongyu/fix-payinvoice

cli: add `--amp` to `SendPaymentRequest` in `payinvoice`
This commit is contained in:
Oliver Gugger
2024-05-06 11:20:07 +02:00
committed by GitHub

View File

@ -886,6 +886,7 @@ func payInvoice(ctx *cli.Context) error {
PaymentRequest: stripPrefix(payReq), PaymentRequest: stripPrefix(payReq),
Amt: ctx.Int64("amt"), Amt: ctx.Int64("amt"),
DestCustomRecords: make(map[uint64][]byte), DestCustomRecords: make(map[uint64][]byte),
Amp: ctx.Bool(ampFlag.Name),
} }
return sendPaymentRequest(ctx, req) return sendPaymentRequest(ctx, req)