Skip to content

Commit

Permalink
Merge pull request #1426 from lft3t8bx/amp-for-v0.18
Browse files Browse the repository at this point in the history
AMP Support for SendPaymentRequest in lnd.py, for lnd v0.18 and above.
  • Loading branch information
KoalaSat authored Aug 26, 2024
2 parents e6a40c1 + 3ea3a9d commit 27b8490
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/lightning/lnd.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 27b8490

Please sign in to comment.