Add 'delexpiredinvoice' to pylightning

This commit is contained in:
darosior 2019-05-11 12:45:02 +02:00 committed by Christian Decker
parent 7c3e441cc8
commit b7279e9130
1 changed files with 9 additions and 0 deletions

View File

@ -371,6 +371,15 @@ class LightningRpc(UnixDomainSocketRpc):
}
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):
"""
Wait for the next invoice to be paid, after {lastpay_index}