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

rpcserver: show inactive channels in GetInfo #1782

Merged
merged 2 commits into from
Nov 7, 2018
Merged

rpcserver: show inactive channels in GetInfo #1782

merged 2 commits into from
Nov 7, 2018

Conversation

xsb
Copy link
Contributor

@xsb xsb commented Aug 24, 2018

Adds the num_inactive_channels field in the response of the GetInfo gRPC call. Inactive channels is calculated substracting the number of active channels to the sum of all currently open channels.

Fixes #1779

@xsb
Copy link
Contributor Author

xsb commented Aug 24, 2018

Output tested using lncli but I don't know yet how to get into a scenario in which there are inactive channels. If someone can help that would be super cool.

Also I am not exactly sure if I am messing up with gRPC in some way so if that's the case let me know.

lnrpc/rpc.proto Outdated Show resolved Hide resolved
@halseth halseth added this to the 0.5.1 milestone Aug 28, 2018
@Roasbeef Roasbeef added rpc Related to the RPC interface channels P3 might get fixed, nice to have labels Sep 9, 2018
@xsb
Copy link
Contributor Author

xsb commented Sep 17, 2018

rebased

@halseth halseth modified the milestones: 0.5.1, 0.5.2 Sep 20, 2018
@halseth halseth added the needs testing PR hasn't yet been actively tested on testnet/mainnet label Sep 20, 2018
@halseth
Copy link
Contributor

halseth commented Nov 1, 2018

Needs a rebase! Otherwise LGTM 👍

@xsb
Copy link
Contributor Author

xsb commented Nov 4, 2018

@halseth rebased. I also squashed the commits you mentioned in the comment.

cfromknecht
cfromknecht previously approved these changes Nov 5, 2018
Copy link
Contributor

@cfromknecht cfromknecht left a comment

Choose a reason for hiding this comment

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

LGTM 👍Thanks @xsb, this is definitely a useful addition!

@xsb
Copy link
Contributor Author

xsb commented Nov 5, 2018

rebased again, rpc.pb.go was updated on master

Copy link
Contributor

@halseth halseth left a comment

Choose a reason for hiding this comment

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

Looks good! 💯

Copy link
Contributor

@cfromknecht cfromknecht left a comment

Choose a reason for hiding this comment

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

LGTM! 🚀thanks @xsb!

@halseth halseth merged commit 3ff6055 into lightningnetwork:master Nov 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
channels needs testing PR hasn't yet been actively tested on testnet/mainnet P3 might get fixed, nice to have rpc Related to the RPC interface
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants