Merge pull request #5033 from robot-dreams/set-channel-status

Add lncli command / RPC for manually setting channel state
This commit is contained in:
Olaoluwa Osuntokun authored and GitHub committed 2021-03-09 18:12:08 -08:00
commit 65b0bbcd53
25 files changed
+1230 -330

No files matched your search

+24
View File
@@ -121,6 +121,15 @@ service Router {
*/
rpc HtlcInterceptor (stream ForwardHtlcInterceptResponse)
returns (stream ForwardHtlcInterceptRequest);
/*
UpdateChanStatus attempts to manually set the state of a channel
(enabled, disabled, or auto). A manual "disable" request will cause the
channel to stay disabled until a subsequent manual request of either
"enable" or "auto".
*/
rpc UpdateChanStatus (UpdateChanStatusRequest)
returns (UpdateChanStatusResponse);
}
message SendPaymentRequest {
@@ -750,3 +759,18 @@ enum ResolveHoldForwardAction {
FAIL = 1;
RESUME = 2;
}
message UpdateChanStatusRequest {
lnrpc.ChannelPoint chan_point = 1;
ChanStatusAction action = 2;
}
enum ChanStatusAction {
ENABLE = 0;
DISABLE = 1;
AUTO = 2;
}
message UpdateChanStatusResponse {
}