plugins icon indicating copy to clipboard operation
plugins copied to clipboard

rebalance: Allow "triangle" rebalances or arbitrary route specification

Open ajpwahqgbi opened this issue 4 years ago • 1 comments
trafficstars

Liquidity swap triangles are increasingly popular, and for newly-created triangles it may make sense to rebalance specifically along the triangle. That's not easy to do with the current implementation.

Current behavior:

Rebalancing chooses routes according to its own ideas, and there is no way to specify a route to attempt.

Desired behavior:

Either:

  1. The ability to specifically do a triangle rebalance. This would not require any changes to the command line arguments; it just needs restricting path selection to those channels that directly connect the outgoing and incoming channel peers.
  2. The ability to specify (by JSON array of pubkeys?) a route (or just the mid_route portion?) to attempt the rebalance along.

ajpwahqgbi avatar Mar 21 '21 23:03 ajpwahqgbi

I did not get 1. but for 2. you can just use lightning-cli sendpay route, not need for the rebalance plugin

manreo avatar Aug 24 '21 00:08 manreo