mirror of
https://github.com/aljazceru/lightning.git
synced 2026-02-04 05:34:22 +01:00
Add 'delexpiredinvoice' to pylightning
This commit is contained in:
committed by
Christian Decker
parent
7c3e441cc8
commit
b7279e9130
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user