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

getinfo - LND Channels formatted output optimization #1940

Closed
kilrau opened this issue Oct 20, 2020 · 0 comments · Fixed by #1948
Closed

getinfo - LND Channels formatted output optimization #1940

kilrau opened this issue Oct 20, 2020 · 0 comments · Fixed by #1948
Assignees
Labels
P3 low priority

Comments

@kilrau
Copy link
Contributor

kilrau commented Oct 20, 2020

Currently the lnd channel overview shows 3 values: Active, Pending, Closed no matter if any of these categories actually have channels. In the example below I just started the environment and my channels were inactive for some minutes - I couldn't see them in the formatted output.

Formatted:

├──────────┼───────────────────────────────────────────────────────────────────────┤
│ Channels │ Active: 0 | Pending: 0 | Closed: 2                                    │
├──────────┼───────────────────────────────────────────────────────────────────────┤

JSON:

        "channels": {
          "active": 0,
          "inactive": 1,
          "pending": 0,
          "closed": 2
        },

This issue is about showing Pending, Inactive & Closed channels if there are non-zero values for these fields in the formatted output, don't show these if the value is 0. Active is always shown, no matter if zero or non-zero.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P3 low priority
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants