lnrpc+lncli: add TerminateSession command

This commit is contained in:
Elle Mouton committed 2024-02-20 14:44:38 +02:00
1 parent 24702ede14
commit 5d16491c13
9 files changed
+657 -216

No files matched your search

+17
View File
@@ -49,6 +49,13 @@ service WatchtowerClient {
rpc DeactivateTower (DeactivateTowerRequest)
returns (DeactivateTowerResponse);
/* lncli: `wtclient session terminate`
Terminate terminates the given session and marks it as terminal so that
it is not used for backups anymore.
*/
rpc TerminateSession (TerminateSessionRequest)
returns (TerminateSessionResponse);
/* lncli: `wtclient towers`
ListTowers returns the list of watchtowers registered with the client.
*/
@@ -106,6 +113,16 @@ message DeactivateTowerResponse {
string status = 1;
}
message TerminateSessionRequest {
// The ID of the session that should be terminated.
bytes session_id = 1;
}
message TerminateSessionResponse {
// A string describing the action that took place.
string status = 1;
}
message GetTowerInfoRequest {
// The identifying public key of the watchtower to retrieve information for.
bytes pubkey = 1;