lnrpc/wtclientrpc: populate sessions from legacy channels

This commit is contained in:
Elle Mouton committed 2023-03-20 16:51:51 +02:00
1 parent bad80ff583
commit 31beacc2c4
1 file changed
+4
+4
View File
@@ -309,6 +309,7 @@ func (c *WatchtowerClient) ListTowers(ctx context.Context,
}
t.SessionInfo = append(t.SessionInfo, rpcTower.SessionInfo...)
t.Sessions = append(t.Sessions, rpcTower.Sessions...)
}
towers := make([]*Tower, 0, len(rpcTowers))
@@ -365,6 +366,9 @@ func (c *WatchtowerClient) GetTowerInfo(ctx context.Context,
rpcTower.SessionInfo = append(
rpcTower.SessionInfo, rpcLegacyTower.SessionInfo...,
)
rpcTower.Sessions = append(
rpcTower.Sessions, rpcLegacyTower.Sessions...,
)
return rpcTower, nil
}