lnrpc+rpcserver: allow abandonchannel to be used in regular build

An often requested feature is to use the abandonchannel API in regular
builds and not only dev builds to get rid of stuck channels that had
their funding transaction invalidated.
The initial reason for putting the call behind the build flag was a
safety concern to make sure nobody uses this on active channels by
accident.
This commit is contained in:
Oliver Gugger committed 2021-05-26 22:51:41 +02:00
1 parent 785d3c9b4f
commit 2e9dd0bcf2
4 files changed
+738 -701

No files matched your search

+713 -698
View File
File diff suppressed because it is too large. Load diff
+7
View File
@@ -3363,6 +3363,13 @@ message AbandonChannelRequest {
ChannelPoint channel_point = 1;
bool pending_funding_shim_only = 2;
/*
Override the requirement for being in dev mode by setting this to true and
confirming the user knows what they are doing and this is a potential foot
gun to lose funds if used on active channels.
*/
bool i_know_what_i_am_doing = 3;
}
message AbandonChannelResponse {
+8
View File
@@ -197,6 +197,14 @@
"required": false,
"type": "boolean",
"format": "boolean"
},
{
"name": "i_know_what_i_am_doing",
"description": "Override the requirement for being in dev mode by setting this to true and\nconfirming the user knows what they are doing and this is a potential foot\ngun to lose funds if used on active channels.",
"in": "query",
"required": false,
"type": "boolean",
"format": "boolean"
}
],
"tags": [