-
Notifications
You must be signed in to change notification settings - Fork 913
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
listpeers channel list should be split into listpeerchannels, channels[] deprecated. #4729
Comments
I'd like to take this issue. |
Status update: code and doc changes are in my fork and have been tested manually, but I'm having trouble getting "make check" to work in order to begin work on the tests...it's failing on what seems to be an unrelated test. [newbie]Is there a developer Telegram group or somewhere I can chat with somebody about it?[/newbie] |
@rl-d Telegram https://t.me/lightningd and you can use also a libera IRC channel with the name #c-lightning. |
Thanks @vincenzopalazzo. Let's leave issue #4734 separate from this (per discussion in Telegram about making a plugin for listing closed channels). |
Mh @rl-d, wandering to give the possibility to a plugin to access from the lightning db, I think it is not safe |
Could incorporate #4734 too... |
If someone is working on this issue, please react in some way 😄 (@rl-d) otherwise I can put in my queue this task and @rustyrussell can assign to me this issue to try to have this feature in the next release. |
Oops, sorry my little ❤️️ reaction on @rustyrussell's comment wasn't enough... next time I will be more verbose... see below :) I plan to address this with the plugin mentioned in issue #4734. Today (or tomorrow for some) I will request a pull of some new common GraphQL tools I wrote for C into CCAN. Will be my first pull request (ever... LOL) so hopefully I can figure it out. If not I will ask somebody 🥰 Then my next effort will be to fabricate (or duplicate) a plugin and integrate it there. |
@vincenzopalazzo on second thought, I will write the tests for the code I already drafted before the plugin suggestion came along (as noted in my comment 14 days ago above)... then we can get this off the radar now and further improve it when the plugin is ready. |
No rush here @rl-d, my ping to you was about the idea to solve the issue suggested by @rustyrussell. I ping you because there are several ways to write plugins for c-lightning (Java, Go, C, JS, V) and didn't catch that you were developing a C plugin to put inside c-lightning (the issue is related to clightning internals). happy to see how the plugin can solve these issue 😄 Thanks |
Thanks... Yeah, I know what you mean....that's why I posted my "second thought" above. The plugin itself (though in C) isn't going inside lightningd directly. The internals need to be tweaked in any case for this issue. The plugin is only providing a convenient way for users to query data that is available in the database. But as such, it should obviate the need to have c-lightning itself serve data that would also be available via the plugin--that is how the plugin relates at all to this issue. Once the plugin is ready with its more convenient way to query the data relevant to a given user, then further simplification of the RPCs could be done (if desired...). I hope that explains it better, and sorry if it sounded confusing before. 😄 |
So, you are working on an alternative solution, and not into this issue (the issue is about the c-lightning internal stuff), right? If I catch this correctly maybe I can continue my work on this issue, and @rustyrussell or @cdecker can assign it to me to avoid double work. |
The work is already done... I would appreciate if you would just take a look at my fork to see what changes I made for this issue, and let me know if you think it is done correctly or if you have any other suggestions. |
See PR #4770 |
OK, this has been closed by the emrge of #5825 |
listpeers has grown: it lists not only the peers, but all the channels each of them has. This is getting very unwieldy (and unnecessarily slow, see #4718 ), and should be split into a
listpeerchannels
which does that.Steps:
listpeerchannels
new command.The text was updated successfully, but these errors were encountered: