lnrpc/wtclientrpc: populate sessions from legacy channels

This commit is contained in:
Elle Mouton 2023-03-17 12:51:06 +02:00
parent bad80ff583
commit 31beacc2c4
No known key found for this signature in database
GPG Key ID: D7D916376026F177

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
}