-
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
Autopilot by a Noob - attempt not working need some help #271
Comments
Thanks for your kind words and your guide :) I've been using the CLI for most of my life, so I guess it just feels more natural to me. I might integrate rebalancing features into lnd-manageJ, maybe that helps. To help you with your struggles:
|
Hi Carsten, thanks for the super fast response! Much appreciated. I will try that out now and feedback! Fingers crossed! |
Also I take on board your point about not being a fan of this way of automating the rebalancing. Do you have a preferred way of automating that you could share? I have also been taking a look at #184, it looks complicated but I sort of get the gist of the code. What I don't quite understand is how this gets linked back to his channels as they are not mentioned anywhere in the code unless I have missed something! |
This is what I have implemented, I'll wait and see if it works!
Not sure what to look out for to be sure it has worked, but I'll keep an eye out on my umbrel |
My personal approach is:
My script uses (simple) locking so that I don't rebalance the same peer more than once, and it makes sure to wait a couple of minutes between rebalance attempts to the same peer. |
Many thanks Carsten! I was able to successfully set up my node using this simple formula below:
But first, some context, it was a bit counter intuitive for me initially but now that I've figured it out it actually works! My initial instinct was to use "-f" to indicate pull inbound liquidity "from" my channel with excessive inbound liquidity, but in fact, that was simply pushing out outbound liquidity "from" that channel that had the excessive inbound liquidity which had the effect of adding in more inbound liquidity and draining my other channels that had insufficient inbound liquidity of their remaining inbound liquidity. So instead what I decided to use was "-t" which actually helped with pulling outbound liquidity "to" the channel with excessive inbound liquidity, thereby distributing the excessive inbound liquidity to my other channels with insufficient inbound liquidity. I set up 5 of these codes from the same single channel that has excess inbound liquidity on the remote side. Each code rebalances the same channel every 10 mins by removing the excess liquidity and distributing it to the rest of my channels that need that inbound liquidity. This first code above rebalances on the second minute of every 10 minutes. The second code that I set up rebalances on the 4th minute of every 10 minutes and so on... I then set up each of the 5 codes to rebalance at different amounts ranging from 10k sats for the first code to 50k sats for the 5th code. Once this has fully rebalanced then I can pause the code (or I think it should stop working once the channel with excessive inbound liquidity drops down to 1 million sats of inbound liquidity. If it doesn't stop automatically then I can turn the code off. I will then see how much routing fees I'm generating and compare that to the cost of the rebalancing and adjust accordingly. But I must say, this automated rebalancing is absolutely brilliant. I can see it show up on my umbrel every 2 mins! Brilliant job and saved me a whole load of time with rebalancing at your preferred price! |
Hello!
I'm a complete noob to CLI. I have managed to install rebalance-lnd and also managed to do a 10k sats rebalance! (which I'm super proud of!) but as you can appreciate, it would take forever doing that manually with 3 mil sats. So wanted to automate it so as to rebalance each of my 8 chosen channels every 10 minutes. Also I wasn't sure how to set it up so that it keeps trying until it actually successfully rebalances. Here is my code, I would be most grateful for your feedback and help! being that I am a total noob. I am sure there are many in my situation who have hit a snag like this and have simply given up. But I believe that the more we make essential tools like this accessible to noobs the more adoption we will get!
Also I tried to reduce my --fee-factor to 0.9 but this is all I keep getting and I don't know where I have gone wrong. I am guessing that I should be adding this into crontab? If so, what would the argument look like? Here is what I have done, so again any help and feedback on my attempt would be really appreciated:
On a separate note, for those noobs who have not gotten as far as I have, here is what has helped me for my own setup. I run an umbrel from a raspberrypi4 and simply ssh from a command line terminal (I use the terminal of mac OS). Also ssh isn't complicated and it took me a while to figure this out. It is just the word "ssh" followed by the username for your umbrel. For most people their umbrel's username is "[email protected]". Simply enter the first line of the code below into the terminal and you're away! So if you have the same set up as me try this out by simply copying each line and pasting it followed by enter. Don't do more than one line! Be patient! It has worked several times for me and I hope it does for you too:
You should now have it installed and should see a list of all your channels and the corresponding balance in each channel, this is what mine looks like! I have used made up numbers in the below examples here so don't attempt to use it! The initial installation process set out above does take time so be patient and remain on the page until it concludes. When you enter the ssh above it will ask you for your password as you are effectively logging into your umbrel!
python3 rebalance.py -t [enter number on left] -a [enter amount]
this is what it should look like:
python3 rebalance.py -t 803...872 -a 100000
this means you're transferring 100000 sats into the channel: 803...872.
3 Returning to Rebalance-lnd:
If you want to re-enter rebalance-lnd after closing it down then these 5 steps should get you there:
I'd like to also take this opportunity to say what a fantastic job by Carsten! Thanks for your invaluable contribution to the network!
The text was updated successfully, but these errors were encountered: