Skip to content

Expose list peers and channels #3

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

Conversation

jurvis
Copy link

@jurvis jurvis commented Mar 27, 2023

Let me know if we want to expose a shorter list of fields to users/anything in documentation needs tweaking here. I copied/rephrased mostly from rust-lightning to be more relevant to an LdkNode user.

@jurvis jurvis force-pushed the jurvis/2022-09-start-uniffi/expose-list-peers-and-channels branch 2 times, most recently from 5f70206 to 95f3789 Compare March 30, 2023 02:39
@tnull tnull force-pushed the 2022-09-start-uniffi branch 4 times, most recently from a06c67e to a491ede Compare March 30, 2023 12:21
@jurvis jurvis force-pushed the jurvis/2022-09-start-uniffi/expose-list-peers-and-channels branch 3 times, most recently from cd804b2 to d51de5c Compare March 30, 2023 19:53
Copy link
Owner

@tnull tnull left a comment

Choose a reason for hiding this comment

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

Awesome, thanks for taking this on!

As discussed offline, this approach is fine for ChannelDetails, but for list_peers we probably want to add a new struct that also exposes the information from PeerManager to include whether we're actually connected to them.

As this will grow a tiny bit more, do you mind closing this and reopening the PR against upstream, based on lightningdevkit#25?

@tnull tnull force-pushed the 2022-09-start-uniffi branch from 38aac93 to c04f28f Compare March 31, 2023 08:32
@jurvis
Copy link
Author

jurvis commented Mar 31, 2023

Yep! Sounds good to me -- will make the updates and change the PR's base branch 😄

@jurvis jurvis force-pushed the jurvis/2022-09-start-uniffi/expose-list-peers-and-channels branch from d51de5c to 542f71f Compare March 31, 2023 18:23
@jurvis
Copy link
Author

jurvis commented Mar 31, 2023

closing in favor of lightningdevkit#56

@jurvis jurvis closed this Mar 31, 2023
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