mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-27 22:21:18 +02:00
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:
@@ -1156,7 +1156,7 @@ type blindedPathRestrictions struct {
|
||||
// path.
|
||||
type blindedHop struct {
|
||||
vertex route.Vertex
|
||||
edgePolicy *models.CachedEdgePolicy
|
||||
channelID uint64
|
||||
edgeCapacity btcutil.Amount
|
||||
}
|
||||
|
||||
@@ -1296,7 +1296,7 @@ func processNodeForBlindedPath(g Graph, node route.Vertex,
|
||||
|
||||
hop := blindedHop{
|
||||
vertex: channel.OtherNode,
|
||||
edgePolicy: channel.InPolicy,
|
||||
channelID: channel.ChannelID,
|
||||
edgeCapacity: channel.Capacity,
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user