routing: use first hop records on path finding

This commit is contained in:
George Tsagkarelis authored and Oliver Gugger committed 2024-09-05 18:00:53 +02:00
1 parent 4804cbf139
commit aa17543d23
4 files changed
+128 -15

No files matched your search

+7
View File
@@ -1188,6 +1188,13 @@ func (r *ChannelRouter) sendToRoute(htlcHash lntypes.Hash, rt *route.Route,
firstHopCustomRecords,
)
// Allow the traffic shaper to add custom records to the outgoing HTLC
// and also adjust the amount if needed.
err = p.amendFirstHopData(rt)
if err != nil {
return nil, err
}
// We found a route to try, create a new HTLC attempt to try.
//
// NOTE: we use zero `remainingAmt` here to simulate the same effect of