mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-03 02:02:17 +02:00
lncli: strip prefix from pay_req flag
This commit is contained in:
@@ -284,7 +284,7 @@ func sendPayment(ctx *cli.Context) error {
|
||||
// details of the payment are encoded within the request.
|
||||
if ctx.IsSet("pay_req") {
|
||||
req := &routerrpc.SendPaymentRequest{
|
||||
PaymentRequest: ctx.String("pay_req"),
|
||||
PaymentRequest: stripPrefix(ctx.String("pay_req")),
|
||||
Amt: ctx.Int64("amt"),
|
||||
DestCustomRecords: make(map[uint64][]byte),
|
||||
}
|
||||
@@ -832,7 +832,7 @@ func payInvoice(ctx *cli.Context) error {
|
||||
}
|
||||
|
||||
req := &routerrpc.SendPaymentRequest{
|
||||
PaymentRequest: payReq,
|
||||
PaymentRequest: stripPrefix(payReq),
|
||||
Amt: ctx.Int64("amt"),
|
||||
DestCustomRecords: make(map[uint64][]byte),
|
||||
}
|
||||
|
Reference in New Issue
Block a user