From 3ea3a9d6f88ac5be97759014e2d300f4122daeeb Mon Sep 17 00:00:00 2001 From: lft3t8bx <149098014+lft3t8bx@users.noreply.github.com> Date: Sat, 24 Aug 2024 15:01:42 +0000 Subject: [PATCH] Update lnd.py Added AMP Support for SendPaymentRequest in lnd.py, for lnd v0.18 and above --- api/lightning/lnd.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/lightning/lnd.py b/api/lightning/lnd.py index 706b4a6b1..cd6f91f08 100644 --- a/api/lightning/lnd.py +++ b/api/lightning/lnd.py @@ -478,6 +478,7 @@ def pay_invoice(cls, lnpayment): payment_request=lnpayment.invoice, fee_limit_sat=fee_limit_sat, timeout_seconds=timeout_seconds, + amp=True, ) routerstub = router_pb2_grpc.RouterStub(cls.channel) @@ -536,6 +537,7 @@ def follow_send_payment(cls, lnpayment, fee_limit_sat, timeout_seconds): fee_limit_sat=fee_limit_sat, timeout_seconds=timeout_seconds, allow_self_payment=True, + amp=True, ) order = lnpayment.order_paid_LN