Repository navigation
Conversation
…peer keeps refusing forwards for lack of outbound
markettes
force-pushed
the
feat/simple-auto-channel-open-job
branch
from
October 30, 2026 18:26
a031b8a to
2eae968
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
AutoChannelOpenJob runs every 30 minutes (1 in dev) behind ROUTING_ENGINE_ENABLED and AUTO_CHANNEL_OPEN_ENABLED. Per node it sums the evidence over each peer's open channels, since LND forwards non-strictly, and recommends a channel when the peer earned at least the minimum fees over the lookback, refused enough forwards with INSUFFICIENT_BALANCE in the shortage window, and is still below the low-outbound threshold now. The size is the node's fixed size: a peer it doesn't fit (wallet or budget) is skipped, never shrunk.
ChannelOpenInitiatorService is the pure planner. ChannelOpenPromotionService turns a recommendation into a pending ChannelOperationRequest at the highest fee rate we already charge the peer; a hot wallet goes straight to ChannelOpenJob. In Auto mode the job promotes on its own unless the node is in dry run.
Also carries the #621 fix: MaxFundableChannelSats leaves room for the funding fee and a change output, from coin selection's spendable coins.
The defaults (7 days / 50,000 sats, 6 h / 5 refusals, 20%) still need checking against prod forwarding data.