Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Idea: LSPS to submit failed payments #58

Open
ZmnSCPxj-jr opened this issue Oct 4, 2023 · 0 comments
Open

Idea: LSPS to submit failed payments #58

ZmnSCPxj-jr opened this issue Oct 4, 2023 · 0 comments

Comments

@ZmnSCPxj-jr
Copy link
Contributor

ZmnSCPxj-jr commented Oct 4, 2023

A custodial wallet has the advantage that they can see every payment of their clients, and from there, get data on which destinations are popular. The custodial wallet can then take that data to drive decision on where to put their channels.

An LSP that supports non-custodial wallets is at a disadvantage in that if a payment fails, the LSP does not know how to fix the issue because it does not know who the ultimate destination is.

Thus I propose to add an advisory interface where the client can say "I tried to reach X, here is the invoice that failed". The LSP can then double-check that (do not trust, verify) by probing to the destination, as well as checking its logs if the client did indeed ask to forward a payment with a matching hash (?), and if indeed the LSP cannot reach the destination for the amount, that is a point of data to let the LSP drive its decisions of where to open their channels.

Care must be taken to prevent this from being abused by fake clients trying to drive liquidity towards their real nodes for free, though I should note that also is possible with custodial wallets (put some funds in custodial wallet, keep sending to your own node until all your channels saturate, and since it is your own node you do not lose the funds, wait for custodial walelt to notice the large number of failed payments to your node and decide to build a channel there).

Proposed API name lspsX.lodge_complaint

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant