lnrpc: add session ID to tower session info

This will be used in the itest added in an upcoming commit so that we can
test the TerminateSession command.
This commit is contained in:
Elle Mouton committed 2024-02-20 14:44:39 +02:00
1 parent a9648cbdd1
commit 1c7a7543c7
4 files changed
+22 -1

No files matched your search

+1
View File
@@ -550,6 +550,7 @@ func marshallTower(tower *wtclient.RegisteredTower, policyType PolicyType,
for _, session := range sessions {
satPerVByte := session.Policy.SweepFeeRate.FeePerVByte()
rpcSessions = append(rpcSessions, &TowerSession{
Id: session.ID[:],
NumBackups: uint32(ackCounts[session.ID]),
NumPendingBackups: uint32(pendingCounts[session.ID]),
MaxBackups: uint32(session.Policy.MaxUpdates),