Skip to content

Commit f3329d6

Browse files
rustyrussellcdecker
authored andcommitted
pylightning: add msatoshi optional sendpay param.
And there's a difference between no description and "" as a description: for no description, listpayments doesn't show the field at all. So fix that. Signed-off-by: Rusty Russell <[email protected]>
1 parent 7eec225 commit f3329d6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

contrib/pylightning/lightning/lightning.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,14 +261,15 @@ def getinfo(self):
261261
"""
262262
return self.call("getinfo")
263263

264-
def sendpay(self, route, payment_hash, description=""):
264+
def sendpay(self, route, payment_hash, description=None, msatoshi=None):
265265
"""
266266
Send along {route} in return for preimage of {payment_hash}
267267
"""
268268
payload = {
269269
"route": route,
270270
"payment_hash": payment_hash,
271271
"description": description,
272+
"msatoshi": msatoshi,
272273
}
273274
return self.call("sendpay", payload)
274275

0 commit comments

Comments
 (0)