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:
Wilmer Paulino committed 2018-11-08 16:16:31 -08:00
1 parent 3ff6055a62
commit 3a314ba4a7
4 files changed
+443 -410

No files matched your search

+1 -1
View File
@@ -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}"
};
}