routerrpc: fix empty payment request bug

This commit is contained in:
Joost Jager committed 2020-03-31 21:41:18 +02:00
1 parent 7ba5bf69e0
commit bc7ee9a7d0
1 file changed
+1
+1
View File
@@ -650,6 +650,7 @@ func (r *RouterBackend) extractIntentFromSendRequest(
)
payIntent.DestFeatures = payReq.Features
payIntent.PaymentAddr = payReq.PaymentAddr
payIntent.PaymentRequest = []byte(rpcPayReq.PaymentRequest)
} else {
// Otherwise, If the payment request field was not specified
// (and a custom route wasn't specified), construct the payment