lnrpc+lncli: add DeactivateTower to rpc
This commit is contained in:
9 files changed
+641
-206
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user