-
Notifications
You must be signed in to change notification settings - Fork 52
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
Pay using specific channel #156
Comments
Definitely an interesting feature to have. |
Here is how it works for me with CLI:
Thing is final cltv delta has to be 144. Dunno why exacly. But with out it most of times i tried it didnt work. not sure if its becouse destination has Time Lock Delta set into 144 or what. But probably it is the case. |
Yep its working :) |
I have tired to use it to send from one channel to another, but it can't be done ;p |
I took me some time to find how to do this but its there.
lncli sendtoroute
Thing is this is very hard to do with cli. Would be nice to have option here in web UI.
First we need to decode invoice with decodepayreq to get payment hash and destination.
Then we need to query routes with destination and amount.
Based on result we can allow user to chose channel (each first hop of returns routes is our channel).
Wit all of this we can use sendtoroute - pay using out selected channel.
This would be cool feature becouse it allows to keep channels balanced (dunno if it can be used to move sat from one own channel to another). LND by default i think always chose first route we can see when query routes - cheapest and shortes. And its bad if you want keep all channels properly balances for routing.
The text was updated successfully, but these errors were encountered: