lndg icon indicating copy to clipboard operation
lndg copied to clipboard

Rebalance to prevent channel going below AR-OUT-Target[2]

Open BhaagBoseDK opened this issue 1 year ago • 0 comments

  • Use selected outbound channels at run time.
  • Check if rebalance required for inbound at run time. New status added AR-Not-Required
  • Update in and out channel balances correctly taking into account multiple channels and MPP. Specially required for outbound to avoid channel dipping below AR-OUT-Target
  • Make channel selection for outbound a bit conservative, only use local balance without considering unsettled balance (i.e. a lower Local Balance). This ensure outbound channel does not end up with excessive unsettled HTLCs, all of which can settle and resulting in channel dropping below AR-OUT. This change reduces but does not completely eliminates the channel dropping below AR-OUT since we run multiple rebalances in parallel and check is only made once one of the rebalance succeeded.

BhaagBoseDK avatar Jul 29 '23 09:07 BhaagBoseDK