routing: dont use InPolicy for blinded paths

We only need the ChannelID, so no need to use the InPolicy which might
be nil.
This commit is contained in:
Elle Mouton committed 2024-07-31 09:36:06 +02:00
1 parent 8a14955a0a
commit b271922501
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -722,7 +722,7 @@ func (r *ChannelRouter) FindBlindedPaths(destination route.Vertex,
hops = append(hops, &route.Hop{
PubKeyBytes: path[j].vertex,
ChannelID: path[j-1].edgePolicy.ChannelID,
ChannelID: path[j-1].channelID,
})
prevNode = path[j].vertex