File tree 1 file changed +15
-0
lines changed
1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -6020,6 +6020,8 @@ func (r *rpcServer) AddInvoice(ctx context.Context,
6020
6020
NumHops : globalBlindCfg .NumHops ,
6021
6021
MaxNumPaths : globalBlindCfg .MaxNumPaths ,
6022
6022
NodeOmissionSet : fn .NewSet [route.Vertex ](),
6023
+ NodeIncomeSet : fn .NewSet [route.Vertex ](),
6024
+ ChannelIncomeSet : fn .NewSet [uint64 ](),
6023
6025
}
6024
6026
6025
6027
if blindCfg != nil && ! blind {
@@ -6048,6 +6050,19 @@ func (r *rpcServer) AddInvoice(ctx context.Context,
6048
6050
6049
6051
blindingRestrictions .NodeOmissionSet .Add (vertex )
6050
6052
}
6053
+
6054
+ for _ , nodeIDBytes := range blindCfg .NodeIncomeList {
6055
+ vertex , err := route .NewVertexFromBytes (nodeIDBytes )
6056
+ if err != nil {
6057
+ return nil , err
6058
+ }
6059
+
6060
+ blindingRestrictions .NodeIncomeSet .Add (vertex )
6061
+ }
6062
+
6063
+ for _ , channelId := range blindCfg .ChannelIncomeList {
6064
+ blindingRestrictions .ChannelIncomeSet .Add (channelId )
6065
+ }
6051
6066
}
6052
6067
6053
6068
if blindingRestrictions .MinDistanceFromIntroNode >
You can’t perform that action at this time.
0 commit comments