lnrpc+lncli: add DeactivateTower to rpc

This commit is contained in:
Elle Mouton committed 2024-02-20 14:44:11 +02:00
1 parent beb9b2eeb8
commit 26432359ad
9 files changed
+641 -206

No files matched your search

+18
View File
@@ -41,6 +41,14 @@ service WatchtowerClient {
*/
rpc RemoveTower (RemoveTowerRequest) returns (RemoveTowerResponse);
/* lncli: `wtclient deactivate`
DeactivateTower sets the given tower's status to inactive so that it
is not considered for session negotiation. Its sessions will also not
be used while the tower is inactive.
*/
rpc DeactivateTower (DeactivateTowerRequest)
returns (DeactivateTowerResponse);
/* lncli: `wtclient towers`
ListTowers returns the list of watchtowers registered with the client.
*/
@@ -88,6 +96,16 @@ message RemoveTowerRequest {
message RemoveTowerResponse {
}
message DeactivateTowerRequest {
// The identifying public key of the watchtower to deactivate.
bytes pubkey = 1;
}
message DeactivateTowerResponse {
// 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;