mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 21:35:11 +01:00
pylightning: Add new waitsendpay command
This commit is contained in:
parent
1e4adb0359
commit
a4a5d6002c
@ -264,6 +264,16 @@ class LightningRpc(UnixDomainSocketRpc):
|
||||
}
|
||||
return self.call("sendpay", payload)
|
||||
|
||||
def waitsendpay(self, payment_hash, timeout=None):
|
||||
"""
|
||||
Wait for payment for preimage of {payment_hash} to complete
|
||||
"""
|
||||
payload = {
|
||||
"payment_hash": payment_hash,
|
||||
"timeout": timeout
|
||||
}
|
||||
return self.call("waitsendpay", payload)
|
||||
|
||||
def pay(self, bolt11, msatoshi=None, description=None, riskfactor=None):
|
||||
"""
|
||||
Send payment specified by {bolt11} with optional {msatoshi}
|
||||
|
Loading…
Reference in New Issue
Block a user