routing: support multiple namespaced MissionControls
This commit is contained in:
6 files changed
+250
-53
No files matched your search
+2
-3
@@ -729,7 +729,7 @@ func (r *rpcServer) addDeps(s *server, macService *macaroons.Service,
|
||||
return info.NodeKey1Bytes, info.NodeKey2Bytes, nil
|
||||
},
|
||||
FindRoute: s.chanRouter.FindRoute,
|
||||
MissionControl: s.missionControl.GetDefaultStore(),
|
||||
MissionControl: s.defaultMC,
|
||||
ActiveNetParams: r.cfg.ActiveNetParams.Params,
|
||||
Tower: s.controlTower,
|
||||
MaxTotalTimelock: r.cfg.MaxOutgoingCltvExpiry,
|
||||
@@ -6071,8 +6071,7 @@ func (r *rpcServer) AddInvoice(ctx context.Context,
|
||||
|
||||
return r.server.chanRouter.FindBlindedPaths(
|
||||
r.selfNode, amt,
|
||||
r.server.missionControl.GetDefaultStore().
|
||||
GetProbability,
|
||||
r.server.defaultMC.GetProbability,
|
||||
blindingRestrictions,
|
||||
)
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user