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

Rapid rebalance strategy - Squeezing every sats out of a route #56

Merged
merged 1 commit into from
May 23, 2023

Conversation

ziggie1984
Copy link
Contributor

This is a preliminary PR for other users to also test the new rapid rebalance strategy. Which basically does the follwing:

When a route is found it will rebalance with an increasing amount (doubling), the new thing is, that it will go down to the min amount when decreasing the amount again. Only potential downside is, that you will try more routes hence failing more routes if no liquidity is available, but from my personal experience it's definitely worth the cost.

@ziggie1984 ziggie1984 marked this pull request as draft April 15, 2023 20:09
@ziggie1984 ziggie1984 changed the title [Draft] Rapid rebalance strategy - Squeezing every sats out of a route Rapid rebalance strategy - Squeezing every sats out of a route Apr 15, 2023
@ziggie1984 ziggie1984 force-pushed the rapid-rebalance-strategy branch from 2f994e4 to 7ced2fa Compare April 15, 2023 21:35
@M1ch43lV
Copy link

M1ch43lV commented Apr 18, 2023

I am testing the changes, and it works very well without bugs! When rapid rebalancing is in action the rebalancing amounts goes up and then down to the minimum until all liquidity of the channel is transfered to your node. For node runner an improved function! Thanks @ziggie1984! Great job.
For whom who want to try out without waiting until merged you can do following steps if you are working with separate users:

$ sudo su - regolancer
$ git clone https://github.com/rkfg/regolancer
$ cd regolancer
$ git status
$ git fetch origin pull/56/head:7ced2fa
$ git status

If you are not successful then try this

$ git checkout 56017f5 
$ git status

Compile & check version

$ go build
$ regolancer --version

Rename the old version and link the new compiled version to the correct path

$ mv /home/regolancer/go/bin/regolancer /home/regolancer/go/bin/regolancer.old
$ ln -s /home/regolancer/regolancer/regolancer /home/regolancer/go/bin/regolancer

@ziggie1984
Copy link
Contributor Author

Ok I also tested it locally, would appreciate some feedback for the PR. Also seeing from the comments that its already used successfully in the wild.
For a routing node I found it very useful to go in this direction when rapid rebalancing.

@ziggie1984 ziggie1984 marked this pull request as ready for review April 18, 2023 19:09
@ziggie1984 ziggie1984 force-pushed the rapid-rebalance-strategy branch from 7ced2fa to 56017f5 Compare April 18, 2023 20:44
@M1ch43lV
Copy link

Also the latest commit of ziggie1984 works without problems

@rkfg rkfg merged commit 3467c7e into rkfg:master May 23, 2023
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

Successfully merging this pull request may close these issues.

3 participants