mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-10-09 22:43:30 +02:00
multi: add blinded route to route requests expressed as hints
Add the option to include a blinded route in a route request (exclusive to including hop hints, because it's incongruous to include both), and express the route as a chain of hop hints. Using a chain of hints over a single hint to represent the whole path allows us to re-use our route construction to fill in a lot of the path on our behalf.
This commit is contained in:
committed by
Olaoluwa Osuntokun
parent
48e36d93d4
commit
c9609b8214
@@ -327,7 +327,7 @@ func (r *RouterBackend) QueryRoutes(ctx context.Context,
|
||||
// the route.
|
||||
routeReq, err := routing.NewRouteRequest(
|
||||
sourcePubKey, &targetPubKey, amt, in.TimePref, restrictions,
|
||||
customRecords, routeHintEdges, finalCLTVDelta,
|
||||
customRecords, routeHintEdges, nil, finalCLTVDelta,
|
||||
)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
Reference in New Issue
Block a user