mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 07:04:22 +01:00
pyln-testing: Add listinvoices to grpc shim
This commit is contained in:
committed by
Rusty Russell
parent
217ce4c03c
commit
76d05483fa
@@ -271,3 +271,18 @@ class LightningGrpc(object):
|
||||
# feerange,
|
||||
)
|
||||
return grpc2py.close2py(self.stub.Close(payload))
|
||||
|
||||
def listinvoices(
|
||||
self,
|
||||
label=None,
|
||||
payment_hash=None,
|
||||
invstring=None,
|
||||
offer_id=None
|
||||
):
|
||||
payload = pb.ListinvoicesRequest(
|
||||
label=label,
|
||||
invstring=invstring,
|
||||
payment_hash=unhexlify(payment_hash) if payment_hash else None,
|
||||
offer_id=offer_id,
|
||||
)
|
||||
return grpc2py.listinvoices2py(self.stub.ListInvoices(payload))
|
||||
|
||||
Reference in New Issue
Block a user