Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Circular rebalancing

See original GitHub issue

It’d be great to have support for circular rebalancing. The easiest API to work with would allow to specify outgoing channel, incoming channel and amount. However it doesn’t need to be that advanced to be useful.

A simpler approach would be to implement #1068 and also add a flag to sendtoroute to allow sending a payment to self. The client could then write this simple algorithm:

  1. find route from the counterparty node belonging to outgoing channel to self
  2. prepend the route with the ID of the counterparty node belonging to outgoing channel
  3. use sendtoroute with the resulting route and self-payment enabled

This was also discussed in

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

ecdsacommented, Jul 6, 2022

@Kixunil here is a (very crude) bash script for eclair rebalancing:

t-bastcommented, Oct 22, 2021

Done with #1969

Read more comments on GitHub >

github_iconTop Results From Across the Web

Rebalancing in the Lightning Network: Circular Payments, Fee ...
Circular payments are a completely off-chain rebalancing strategy where a node makes a payment to itself across a circular path of chained ...
Read more >
How does circular rebalance on LN work?
Basically, my outbound capacity decreased on the channel with Bob by the expected amount but the commit_fee on that channel rose by 100...
Read more >
Circular Rebalance on Umbrel? - Lightning Network Plus
Circular rebalancing can be expensive. It most probably doesn't work because the max fee you put is too low. If you bump it...
Read more >
Circular Rebalance shows as failed on every rebalancing ...
Navigate to "Peers/Channels"; Click on "Actions dropdown" of the channel you want to rebalance and choose Circular rebalance option. Choose ...
Read more >
What is Round Robin Load Balancing? Definition & FAQs
Round robin load balancing is a simple way to distribute client requests across a group of servers. A client request is forwarded to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found