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

Feature request: FindRouteToNode, but any 2 nodes #1068

Closed
STAWKEYE opened this issue Jul 10, 2019 · 0 comments
Closed

Feature request: FindRouteToNode, but any 2 nodes #1068

STAWKEYE opened this issue Jul 10, 2019 · 0 comments

Comments

@STAWKEYE
Copy link

Feature request: API call FindRouteToNode will use Eclair's routing algorithm to find a route from your node to any designated node. I request an API call such as FindRouteBetweenNodes that does exactly the same thing, but between any two defined nodes of your choosing. This could be used to find payment loops between 2 nodes that you already have channels with, that you wish to balance. In this instance, FindRouteToNode will simply return your own payment channel since it is meant for finding the best route for a simple payment.

Now that I think about it, my approach will simply return "Node A -> Your Node -> Node B" if you already have channels with A and B. Perhaps return several paths, or return a single path but omit the obvious path that uses your node as the intermediary.

tompro added a commit to tompro/eclair that referenced this issue Feb 17, 2021
Added additional method to Eclair like findRoute but allowing for 2 nodeIds. Also added a new endpoint to the http Api "findroutebetweennodes" which takes sourceNode and targetNode as params.
@t-bast t-bast closed this as completed in fdb57b4 Feb 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants