df: add openchannel_abort command

Allows us to clean up an in-progress open that we won't be completing

Changelog-Added: EXPERIMENTAL JSON-RPC: Permit user-initiated aborting of in-progress opens. Only valid for not-yet-committed opens and RBF-attempts
This commit is contained in:
niftynei
2021-03-09 15:14:08 -06:00
committed by Rusty Russell
parent 015a0555d0
commit bec96a6c5b
25 changed files with 266 additions and 40 deletions

View File

@@ -1101,6 +1101,13 @@ class LightningRpc(UnixDomainSocketRpc):
}
return self.call("openchannel_bump", payload)
def openchannel_abort(self, channel_id):
""" Abort a channel open """
payload = {
"channel_id": channel_id,
}
return self.call("openchannel_abort", payload)
def paystatus(self, bolt11=None):
"""Detail status of attempts to pay {bolt11} or any."""
payload = {