[NUT-15] LND Support for MPP Payments #536
No reviewers
Labels
No labels
DB & Storage
Deployment
Error Handling & Logging
Maintenance
Payment Backend
backport
backport v0.13.x
backport v0.14.x
backport v0.15.x
bindings
blocked
bug
cdk-sql
ci
cli
deps
documentation
duplicate
enhancement
good first issue
help wanted
invalid
keep-open
ldk-node-ui
migrations
mint
mutation-testing
needs rebase
needs review
new nut
nut change
question
ready
rust-version
rustfmt
stacked hold
stale
testing
wallet
weekly-report
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
cashubtc/cdk!536
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "lnd-partial-payments"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
Query the high probability routes for the public key in the invoice. Attempt the first route: if the failure code is 15 (TEMPORARY_CHANNEL_FAILURE), attempt the next route.
CHANGED
pay_invoice: forks execution based on the presence of a partial_amount.Checklist
just final-checkbefore committing@ -202,3 +203,3 @@melt_quote: mint::MeltQuote,_partial_amount: Option<Amount>,partial_amount: Option<Amount>,max_fee: Option<Amount>,Wont this return here due to the use of
?so if the payment fails the next route cannot be tried?Do we want to return the function here or continue to next route?
NIT: Since we care about both paths the
SomeandNonewe should use amatchand notif letto be consistent with code style https://github.com/cashubtc/cdk/blob/main/CODE_STYLE.md#if-let@ -202,3 +203,3 @@melt_quote: mint::MeltQuote,_partial_amount: Option<Amount>,partial_amount: Option<Amount>,max_fee: Option<Amount>,I think we want to return in this case. Clearly something is wrong with the response.
@ -202,3 +203,3 @@melt_quote: mint::MeltQuote,_partial_amount: Option<Amount>,partial_amount: Option<Amount>,max_fee: Option<Amount>,I think we only want to try more routes if we get a specific error 15 (TEMPORARY_CHANNEL_FAILURE). If we get any other kind of error then something else is up.