mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-11-13 15:49:04 +01:00
routing: pass BlindedPaymentPathSet around everywhere
Building on from the previous commit, here we pass the PathSet around everywhere where we previously passed around the single BlindedPayment.
This commit is contained in:
@@ -5105,7 +5105,7 @@ type rpcPaymentIntent struct {
|
||||
paymentAddr *[32]byte
|
||||
payReq []byte
|
||||
metadata []byte
|
||||
blindedPayment *routing.BlindedPayment
|
||||
blindedPathSet *routing.BlindedPaymentPathSet
|
||||
|
||||
destCustomRecords record.CustomSet
|
||||
|
||||
@@ -5248,7 +5248,7 @@ func (r *rpcServer) extractPaymentIntent(rpcPayReq *rpcPaymentRequest) (rpcPayme
|
||||
if err != nil {
|
||||
return payIntent, err
|
||||
}
|
||||
payIntent.blindedPayment = pathSet.GetPath()
|
||||
payIntent.blindedPathSet = pathSet
|
||||
|
||||
// Replace the destination node with the target public
|
||||
// key of the blinded path set.
|
||||
@@ -5417,7 +5417,7 @@ func (r *rpcServer) dispatchPaymentIntent(
|
||||
DestFeatures: payIntent.destFeatures,
|
||||
PaymentAddr: payIntent.paymentAddr,
|
||||
Metadata: payIntent.metadata,
|
||||
BlindedPayment: payIntent.blindedPayment,
|
||||
BlindedPathSet: payIntent.blindedPathSet,
|
||||
|
||||
// Don't enable multi-part payments on the main rpc.
|
||||
// Users need to use routerrpc for that.
|
||||
|
||||
Reference in New Issue
Block a user