Update lnd.py

Added AMP Support for SendPaymentRequest in lnd.py, for lnd v0.18 and above
This commit is contained in:
lft3t8bx 2024-08-24 15:01:42 +00:00 committed by GitHub
parent e6a40c12ea
commit 3ea3a9d6f8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -478,6 +478,7 @@ class LNDNode:
payment_request=lnpayment.invoice, payment_request=lnpayment.invoice,
fee_limit_sat=fee_limit_sat, fee_limit_sat=fee_limit_sat,
timeout_seconds=timeout_seconds, timeout_seconds=timeout_seconds,
amp=True,
) )
routerstub = router_pb2_grpc.RouterStub(cls.channel) routerstub = router_pb2_grpc.RouterStub(cls.channel)
@ -536,6 +537,7 @@ class LNDNode:
fee_limit_sat=fee_limit_sat, fee_limit_sat=fee_limit_sat,
timeout_seconds=timeout_seconds, timeout_seconds=timeout_seconds,
allow_self_payment=True, allow_self_payment=True,
amp=True,
) )
order = lnpayment.order_paid_LN order = lnpayment.order_paid_LN