From f3329d6013aab3419c75df798c08c02db6053b49 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Tue, 23 Oct 2018 20:41:33 +1030 Subject: [PATCH] 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 --- contrib/pylightning/lightning/lightning.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contrib/pylightning/lightning/lightning.py b/contrib/pylightning/lightning/lightning.py index cd1196657..2854849cd 100644 --- a/contrib/pylightning/lightning/lightning.py +++ b/contrib/pylightning/lightning/lightning.py @@ -261,7 +261,7 @@ class LightningRpc(UnixDomainSocketRpc): """ return self.call("getinfo") - def sendpay(self, route, payment_hash, description=""): + def sendpay(self, route, payment_hash, description=None, msatoshi=None): """ Send along {route} in return for preimage of {payment_hash} """ @@ -269,6 +269,7 @@ class LightningRpc(UnixDomainSocketRpc): "route": route, "payment_hash": payment_hash, "description": description, + "msatoshi": msatoshi, } return self.call("sendpay", payload)