lnrpc+rpc+lnd: add new Stop command for gracefully shutting down lnd
This commit adds simple non-blocking stop command to lncli, with an appropriate proto update and implementation within the rpcserver. When invoked the interrupt handler routine in signal.go with begin the graceful shutdown of lnd.
This commit is contained in:
1 parent
2a602b6d61
commit
aa4e166539
7 files changed
+422
-312
No files matched your search
+7
-2
@@ -18,7 +18,7 @@ service Lightning {
|
||||
|
||||
rpc GetTransactions (GetTransactionsRequest) returns (TransactionDetails) {
|
||||
option (google.api.http) = {
|
||||
get: "/v1/transactions"
|
||||
get: "/v1/transactions"
|
||||
};
|
||||
}
|
||||
rpc SendCoins (SendCoinsRequest) returns (SendCoinsResponse) {
|
||||
@@ -166,6 +166,8 @@ service Lightning {
|
||||
};
|
||||
}
|
||||
|
||||
rpc StopDaemon(StopRequest) returns (StopResponse);
|
||||
|
||||
rpc SubscribeChannelGraph(GraphTopologySubscription) returns (stream GraphTopologyUpdate);
|
||||
|
||||
rpc SetAlias(SetAliasRequest) returns (SetAliasResponse);
|
||||
@@ -542,9 +544,12 @@ message NetworkInfo {
|
||||
// * also additional RPC for tracking fee info once in
|
||||
}
|
||||
|
||||
message StopRequest{}
|
||||
message StopResponse{}
|
||||
|
||||
message GraphTopologySubscription {}
|
||||
message GraphTopologyUpdate {
|
||||
repeated NodeUpdate node_updates = 1;
|
||||
repeated NodeUpdate node_updates = 1;
|
||||
repeated ChannelEdgeUpdate channel_updates = 2;
|
||||
repeated ClosedChannelUpdate closed_chans = 3;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user