Skip to content

Commit

Permalink
lnd: add the option to set the income channel on blinded path
Browse files Browse the repository at this point in the history
It was made general enough to specify chained channels hops.
  • Loading branch information
MPins committed Oct 21, 2024
1 parent 2f96a84 commit 5db01ae
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions rpcserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -6020,6 +6020,7 @@ func (r *rpcServer) AddInvoice(ctx context.Context,
NumHops: globalBlindCfg.NumHops,
MaxNumPaths: globalBlindCfg.MaxNumPaths,
NodeOmissionSet: fn.NewSet[route.Vertex](),
ChannelIncomeSet: make([]uint64, 0),
}

if blindCfg != nil && !blind {
Expand Down Expand Up @@ -6048,6 +6049,12 @@ func (r *rpcServer) AddInvoice(ctx context.Context,

blindingRestrictions.NodeOmissionSet.Add(vertex)
}

blindingRestrictions.ChannelIncomeSet = append(
blindingRestrictions.ChannelIncomeSet,
blindCfg.ChannelIncomeList...,
)

}

if blindingRestrictions.MinDistanceFromIntroNode >
Expand Down

0 comments on commit 5db01ae

Please sign in to comment.