Add 'delexpiredinvoice' to pylightning
This commit is contained in:
parent
7c3e441cc8
commit
b7279e9130
|
@ -371,6 +371,15 @@ class LightningRpc(UnixDomainSocketRpc):
|
||||||
}
|
}
|
||||||
return self.call("delinvoice", payload)
|
return self.call("delinvoice", payload)
|
||||||
|
|
||||||
|
def delexpiredinvoice(self, maxexpirytime=None):
|
||||||
|
"""
|
||||||
|
Delete all invoices that have expired on or before the given {maxexpirytime}
|
||||||
|
"""
|
||||||
|
payload = {
|
||||||
|
"maxexpirytime": maxexpirytime
|
||||||
|
}
|
||||||
|
return self.call("delexpiredinvoice", payload)
|
||||||
|
|
||||||
def waitanyinvoice(self, lastpay_index=None):
|
def waitanyinvoice(self, lastpay_index=None):
|
||||||
"""
|
"""
|
||||||
Wait for the next invoice to be paid, after {lastpay_index}
|
Wait for the next invoice to be paid, after {lastpay_index}
|
||||||
|
|
Loading…
Reference in New Issue