routing+routerrpc: isolate payment session source from mission control

This commit is contained in:
Joost Jager committed 2019-07-13 22:38:19 +02:00
1 parent cf3dd3fb94
commit 37e2751695
12 files changed
+308 -191

No files matched your search

+9 -5
View File
@@ -32,12 +32,16 @@ func TestRequestRoute(t *testing.T) {
return path, nil
}
session := &paymentSession{
mc: &MissionControl{
selfNode: &channeldb.LightningNode{},
cfg: &MissionControlConfig{},
sessionSource := &SessionSource{
SelfNode: &channeldb.LightningNode{},
MissionControl: &MissionControl{
cfg: &MissionControlConfig{},
},
pathFinder: findPath,
}
session := &paymentSession{
sessionSource: sessionSource,
pathFinder: findPath,
}
cltvLimit := uint32(30)