mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-06-06 04:59:34 +02:00
lncli: fix parsing of --amp when sending a payment
This commit is contained in:
parent
98c52df4d2
commit
59c8bafda7
@ -328,14 +328,15 @@ func sendPayment(ctx *cli.Context) error {
|
|||||||
PaymentRequest: stripPrefix(ctx.String("pay_req")),
|
PaymentRequest: stripPrefix(ctx.String("pay_req")),
|
||||||
Amt: ctx.Int64("amt"),
|
Amt: ctx.Int64("amt"),
|
||||||
DestCustomRecords: make(map[uint64][]byte),
|
DestCustomRecords: make(map[uint64][]byte),
|
||||||
|
Amp: ctx.Bool(ampFlag.Name),
|
||||||
}
|
}
|
||||||
|
|
||||||
// We'll attempt to parse a payment address as well, given that
|
// We'll attempt to parse a payment address as well, given that
|
||||||
// if the user is using an AMP invoice, then they may be trying
|
// if the user is using an AMP invoice, then they may be trying
|
||||||
// to specify that value manually.
|
// to specify that value manually.
|
||||||
//
|
//
|
||||||
// Don't parse unnamed arguments to prevent confusion with the main
|
// Don't parse unnamed arguments to prevent confusion with the
|
||||||
// unnamed argument format for non-AMP payments.
|
// main unnamed argument format for non-AMP payments.
|
||||||
payAddr, err := parsePayAddr(ctx, nil)
|
payAddr, err := parsePayAddr(ctx, nil)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
@ -46,6 +46,9 @@
|
|||||||
* [`getchaninfo`](https://github.com/lightningnetwork/lnd/pull/8813) now accepts
|
* [`getchaninfo`](https://github.com/lightningnetwork/lnd/pull/8813) now accepts
|
||||||
a channel outpoint besides a channel id.
|
a channel outpoint besides a channel id.
|
||||||
|
|
||||||
|
* [Fixed](https://github.com/lightningnetwork/lnd/pull/8823) how we parse the
|
||||||
|
`--amp` flag when sending a payment specifying the payment request.
|
||||||
|
|
||||||
## Code Health
|
## Code Health
|
||||||
## Breaking Changes
|
## Breaking Changes
|
||||||
## Performance Improvements
|
## Performance Improvements
|
||||||
@ -59,4 +62,5 @@
|
|||||||
|
|
||||||
# Contributors (Alphabetical Order)
|
# Contributors (Alphabetical Order)
|
||||||
|
|
||||||
|
* Andras Banki-Horvath
|
||||||
* Bufo
|
* Bufo
|
||||||
|
Loading…
x
Reference in New Issue
Block a user