mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 01:24:26 +01:00
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:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user