lnrpc: modify AbandonChannel REST endpoint
In this commit, we modify the AbandonChannel REST endpoint to avoid conflicting with the CloseChannel's. Otherwise, if a debug build of lnd is being used, there's no way of closing channels through the REST API as it's been overwritten by AbandonChannel.
This commit is contained in:
4 files changed
+443
-410
No files matched your search
+1
-1
@@ -392,7 +392,7 @@ service Lightning {
|
||||
*/
|
||||
rpc AbandonChannel (AbandonChannelRequest) returns (AbandonChannelResponse) {
|
||||
option (google.api.http) = {
|
||||
delete: "/v1/channels/{channel_point.funding_txid_str}/{channel_point.output_index}"
|
||||
delete: "/v1/channels/abandon/{channel_point.funding_txid_str}/{channel_point.output_index}"
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user