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:
Elle Mouton committed 2024-07-31 09:14:28 +02:00
1 parent 3d5f20b70f
commit 4a22ec8413
7 files changed
+94 -92

No files matched your search

+6 -6
View File
@@ -388,10 +388,10 @@ func (r *RouterBackend) parseQueryRoutesRequest(in *lnrpc.QueryRoutesRequest) (
fromNode, toNode, amt, capacity,
)
},
DestCustomRecords: record.CustomSet(in.DestCustomRecords),
CltvLimit: cltvLimit,
DestFeatures: destinationFeatures,
BlindedPayment: blindedPathSet.GetPath(),
DestCustomRecords: record.CustomSet(in.DestCustomRecords),
CltvLimit: cltvLimit,
DestFeatures: destinationFeatures,
BlindedPaymentPathSet: blindedPathSet,
}
// Pass along an outgoing channel restriction if specified.
@@ -420,7 +420,7 @@ func (r *RouterBackend) parseQueryRoutesRequest(in *lnrpc.QueryRoutesRequest) (
return routing.NewRouteRequest(
sourcePubKey, targetPubKey, amt, in.TimePref, restrictions,
customRecords, routeHintEdges, blindedPathSet.GetPath(),
customRecords, routeHintEdges, blindedPathSet,
finalCLTVDelta,
)
}
@@ -1007,7 +1007,7 @@ func (r *RouterBackend) extractIntentFromSendRequest(
if err != nil {
return nil, err
}
payIntent.BlindedPayment = pathSet.GetPath()
payIntent.BlindedPathSet = pathSet
// Replace the target node with the target public key
// of the blinded path set.