mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-22 08:34:20 +01:00
sendpay: add payment_metadata argument.
And document the missing arguments. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -1128,7 +1128,7 @@ class LightningRpc(UnixDomainSocketRpc):
|
||||
}
|
||||
return self.call("plugin", payload)
|
||||
|
||||
def sendpay(self, route, payment_hash, label=None, msatoshi=None, bolt11=None, payment_secret=None, partid=None, groupid=None):
|
||||
def sendpay(self, route, payment_hash, label=None, msatoshi=None, bolt11=None, payment_secret=None, partid=None, groupid=None, payment_metadata=None):
|
||||
"""
|
||||
Send along {route} in return for preimage of {payment_hash}.
|
||||
"""
|
||||
@@ -1141,6 +1141,7 @@ class LightningRpc(UnixDomainSocketRpc):
|
||||
"payment_secret": payment_secret,
|
||||
"partid": partid,
|
||||
"groupid": groupid,
|
||||
"payment_metadata": payment_metadata,
|
||||
}
|
||||
return self.call("sendpay", payload)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user