routerrpc: fix empty payment request bug

This commit is contained in:
Joost Jager 2020-03-31 13:42:36 +02:00
parent 7ba5bf69e0
commit bc7ee9a7d0
No known key found for this signature in database
GPG Key ID: A61B9D4C393C59C7

@ -650,6 +650,7 @@ func (r *RouterBackend) extractIntentFromSendRequest(
) )
payIntent.DestFeatures = payReq.Features payIntent.DestFeatures = payReq.Features
payIntent.PaymentAddr = payReq.PaymentAddr payIntent.PaymentAddr = payReq.PaymentAddr
payIntent.PaymentRequest = []byte(rpcPayReq.PaymentRequest)
} else { } else {
// Otherwise, If the payment request field was not specified // Otherwise, If the payment request field was not specified
// (and a custom route wasn't specified), construct the payment // (and a custom route wasn't specified), construct the payment