Skip to content

Auto channel open: node settings and recommendations panel - #661

Open
markettes wants to merge 1 commit into
feat/simple-auto-channel-open-jobfrom
feat/simple-auto-channel-open-ui
Open

markettes wants to merge 1 commit into
feat/simple-auto-channel-open-jobfrom
feat/simple-auto-channel-open-ui

Conversation

@markettes

Copy link
Copy Markdown
Collaborator

Nodes page, liquidity management: an Automatic Channel Opening section with the switch, mode, funding wallet, fixed channel size and budget. Wallet, size and budget are required while the feature is on, since the job skips a node missing any of them and only says so in the log.

Routing Management: a Channel open recommendations panel per node with the switch and mode, the size, the budget and what the current period has committed, and one row per open recommendation: earned fees and amount routed, refusals, outbound now over capacity, the fee policy it opens at, and an editable capacity. Create request promotes it to a pending channel open request; Dismiss starts the peer's cooldown. Peers are named from the Nodes table, like the peers table on the same page.

The panel warns when the feature is globally off or the node has no funding wallet.

@markettes
markettes added this pull request to stack #663 October 30, 2026 18:07
@markettes
markettes requested review from Jossec101 and a balanced review from Copilot October 30, 2026 18:11

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Unresolved critical issues allow actions on stale recommendations from another node and hot-wallet spending without the promised approval step.

4 open issues
What changed in this PR

Adds configuration and review controls for NodeGuard’s automatic channel-opening workflow across the Nodes and Routing Management pages.

Changes:

  • Adds per-node mode, funding wallet, channel size, and budget settings, with required-field validation.
  • Displays recommendations, peer routing metrics, opening fee policies, and committed budget, with editable capacity and create/dismiss actions.
  • Adds configuration warnings and shares persistence handling across routing gates.
File Description
src/​Pages/​RoutingManagement.razor Adds the recommendations panel, budget readout, and promotion/dismissal actions.
src/​Pages/​Nodes.razor Adds automatic channel-opening settings, validation, and updated dry-run guidance.

Review effort: Balanced

Comment on lines +781 to +782
_recommendations = recommendations.Result;
_channelOpenCommittedSats = committed.Result;
SetGate(node, flag, enabled);
var (ok, _) = NodeRepository.Update(node);
var capacity = GetEditedCapacity(rec);
var (ok, error) = await ChannelOpenPromotionService.Promote(rec.Id, capacity, LoggedUser.Id);
Comment on lines +884 to 885
ToastService.ShowError(error ?? "Could not create the channel open request.");
return;
Comment thread src/Pages/Nodes.razor
Comment on lines +844 to +846
In <strong>Auto</strong> mode every recommendation is promoted to a pending channel request
without review. Funding still follows the usual approval and signing flow on the Channel
Requests page.
@markettes
markettes force-pushed the feat/simple-auto-channel-open-ui branch from 89d8cab to d8dcc9b Compare October 30, 2026 18:26

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants