-
Notifications
You must be signed in to change notification settings - Fork 82
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
Improve routing efficiency by utilizing source_pub_key argument in QueryRoutes #52
Comments
That means, when using |
Maybe I am missing something but here is how I picture it. Suppose a valid rebalancing chain is A->B->...->Z->A and you specify |
You're exactly right. However, the route returned is only going from B to Z, and we need to add the first hop from A to B. This requires us to update the fees along the route, similar to the route extension as it currently happens for the last hop. |
If it's similar, it should not be hard to implement, do I understand you correctly? I often see failure to find a route among 45-60 returned routes just because the first hop does not match It may become even bigger issue when they depreciate |
@jgwtt the We should use that when the |
@wamde let me see if I can get this going |
You do need to update the https://github.com/lightningnetwork/lnd/tree/master/lnrpc the rebalance-lnd uses |
In the current master I just ignore all channels but the one specified by |
If the FROM channel is specified on the command line, the script should probably call
GetRoutes
while specifying thesource_pub_key
argument as the first node in the route (the node on the other end of the FROM channel). Currently,GetRoutes
tries to find N routes indiscriminately and the check to match the FROM channel happens after routes are returned. This is inefficient and thus it takes longer to find the suitable route and could result in higher chances of routing failure.I observed that often the 15/30/.. routes returned by the RPC call do not match the FROM channel and the rebalancing fails for that reason
The text was updated successfully, but these errors were encountered: