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

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

Open
wants to merge 3 commits into
base: v1.9.0
Choose a base branch
from

Conversation

BhaagBoseDK
Copy link
Collaborator

  • 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.

@cryptosharks131 cryptosharks131 changed the base branch from v1.8.0 to v1.9.0 March 2, 2024 15:41
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.

1 participant