File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
contrib/pyln-client/pyln/client Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -931,15 +931,17 @@ def listnodes(self, node_id=None):
931
931
}
932
932
return self .call ("listnodes" , payload )
933
933
934
- def listpays (self , bolt11 = None , payment_hash = None ):
934
+ def listpays (self , bolt11 = None , payment_hash = None , status = None ):
935
935
"""
936
936
Show outgoing payments, regarding {bolt11} or {payment_hash} if set
937
- Can only specify one of {bolt11} or {payment_hash}.
937
+ Can only specify one of {bolt11} or {payment_hash}. It is possible
938
+ filter the payments by status.
938
939
"""
939
940
assert not (bolt11 and payment_hash )
940
941
payload = {
941
942
"bolt11" : bolt11 ,
942
- "payment_hash" : payment_hash
943
+ "payment_hash" : payment_hash ,
944
+ "status" : status
943
945
}
944
946
return self .call ("listpays" , payload )
945
947
You can’t perform that action at this time.
0 commit comments