lnrpc/routerrpc: add payment addr to SendPaymentRequest

Fixes #4692
This commit is contained in:
Olaoluwa Osuntokun
2021-01-05 19:01:26 -08:00
parent fbb3e400b8
commit b85c92d8d5
4 changed files with 191 additions and 165 deletions

View File

@@ -695,6 +695,15 @@ func (r *RouterBackend) extractIntentFromSendRequest(
return nil, err
}
// If the payment addresses is specified, then we'll also
// populate that now as well.
if len(rpcPayReq.PaymentAddr) != 0 {
var payAddr [32]byte
copy(payAddr[:], rpcPayReq.PaymentAddr)
payIntent.PaymentAddr = &payAddr
}
payIntent.DestFeatures = features
}