AMP Support for SendPaymentRequest in lnd.py, for lnd v0.18 and above. #1426
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
AMP Support for SendPaymentRequest in lnd.py, for lnd v0.18 and above.
When users submit an amp invoice, the payout would fail if the coordinator is running lnd v0.18 and above with the following error at the lnd backed:
This PR simply adds two linse in lnd.py (under pay_invoice and under follow_send_payment SendPaymentRequest) to enable AMP support when sending payments, as shown below:
This PR has been tested by Temple Of Sats coordinator for around 1 week.
No issues have been detected so far.
Checklist before merging
pip install pre-commit
, thenpre-commit install
. Pre-commit installs git hooks that automatically check the codebase. If pre-commit fails when you commit your changes, please fix the problems it points out.