Skip to content

Implement node-specific channel balance retrieval - #613

Open
markettes wants to merge 1 commit into
mainfrom
fix/channel-balance-routing-management
Open

markettes wants to merge 1 commit into
mainfrom
fix/channel-balance-routing-management

Conversation

@markettes

Copy link
Copy Markdown
Contributor

Fix retrieve channel balances from the perspective of a selected node, updating the UI accordingly. This change improves the accuracy of balance displays in the routing management interface.

@markettes
markettes requested review from Jossec101 and a lite review from Copilot and removed request for Jossec101 September 24, 2026 18:19

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.

Copilot review overview

🟢 Approval recommended

No unresolved review issues were identified.

Review effort: Lite
Findings: None

What changed in this PR

Implements node-specific channel balance retrieval so Routing Management displays balances from the selected node’s perspective.

Changes:

  • Adds node-aware channel state retrieval.
  • Handles shared balance conversion and pending HTLCs.
  • Refreshes balances when loading or switching nodes.
  • Adds tests for perspectives, HTLCs, and failures.
File Summary
test/​NodeGuard.Tests/​Services/​LightningServiceTests.cs Tests node-specific balances and edge cases.
src/​Services/​LightningService.cs Adds node-specific channel state retrieval.
src/​Pages/​RoutingManagement.razor Loads balances for the selected node.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

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