Skip to content

Auto channel open: end-to-end test and docs - #662

Open
markettes wants to merge 2 commits into
feat/simple-auto-channel-open-uifrom
feat/simple-auto-channel-open-e2e
Open

markettes wants to merge 2 commits into
feat/simple-auto-channel-open-uifrom
feat/simple-auto-channel-open-e2e

Conversation

@markettes

Copy link
Copy Markdown
Collaborator

Draft until the e2e test has a clean run: earlier runs were broken by another process driving the same compose stack, so it has not passed yet.

AutoChannelOpenE2ETests drives the whole feature on the regtest stack. Alice pays over alice→bob→carol so bob earns fees on its channel to carol; that channel is drained, and payments bob can't forward are refused for INSUFFICIENT_BALANCE. With the feature on in Recommendation mode, the job writes an open recommendation with that evidence, the fixed size and the inherited fee policy. In Auto mode it promotes it, the request funds from the hot wallet, and a new channel to carol opens at the configured capacity with the same policy. LndTestClient and E2ETestBase gain the helpers it needs; the e2e compose turns the feature on with low thresholds.

The VS Code debug config gets the same switch and thresholds, so a local regtest shows recommendations quickly.

docs/auto-channel-open.md describes the rule, modes, lifecycle, budget, settings and known limitations.

@markettes
markettes added this pull request to stack #663 October 30, 2026 18:07
@markettes
markettes force-pushed the feat/simple-auto-channel-open-e2e branch from caaab90 to 6abe607 Compare October 30, 2026 18:26
@markettes
markettes requested a review from Jossec101 October 30, 2026 18:30
@markettes
markettes marked this pull request as ready for review October 30, 2026 18:30

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant