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

rebalance: Remember successful rebalance routes and try to use their channels again #236

Open
ajpwahqgbi opened this issue Mar 22, 2021 · 0 comments

Comments

@ajpwahqgbi
Copy link
Contributor

When rebalancing, I find it helpful to break up the amount I wish to rebalance into smaller chunks. In my experience smaller rebalances are more likely to succeed. But sometimes when stars (or channel capacities) align, there is a good route that can handle a multiple of the small chunk amount. In these cases, I want to take advantage of the capacity without beginning path finding de novo.

I propose that some sort of state is read and stored, perhaps optionally, perhaps in a user-specified file, and upon successfully making a rebalance payment, the state gets updated with the route that succeeded. When the next rebalance request comes with the same incoming and outgoing channels, we try the same route that succeeded last time. This can be further generalized to keep a history of successful routes, analyze them carefully, prioritize historically successful channels, etc.

If the route fails this time, prioritize the non-failing channels in the route for future route selection, because the conditional probability that a previously-succeeding channel will be usable for the new attempt given that it just worked for the last attempt is much higher than the probability that any given channel will be usable.

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