Skip to content

Feature request: listpeerchannels should allow querying by SCID #8233

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

Open
whitslack opened this issue Apr 13, 2025 · 0 comments · May be fixed by #8237
Open

Feature request: listpeerchannels should allow querying by SCID #8233

whitslack opened this issue Apr 13, 2025 · 0 comments · May be fixed by #8237

Comments

@whitslack
Copy link
Collaborator

whitslack commented Apr 13, 2025

While managing my node, I frequently want to see the details of a particular channel whose SCID I readily know but whose peer node ID I do not have at hand. It would be nice if listpeerchannels could accept a SCID as its id argument as an alternative to a node ID.

And yes, I know I can pass a SCID to listchannels to find the node ID of the peer, although that seems only to work for published channels that gossipd knows about. (I have failed to find my own private channels using that command.) Alternatively, I know I can also dump all of my channels by calling listpeerchannels with no id argument and then filtering the results manually, but it would be nice if I didn't have to jump through all the extra hoops. Asking listpeerchannels for a particular channel by SCID seems natural.

rustyrussell added a commit to rustyrussell/lightning that referenced this issue Apr 15, 2025
Requested-by: @whitslack
Closes: ElementsProject#8233
Changelog-Added: JSON-RPC: `listpeerchannels` now has a `short_channel_id` parameter for just listing a specific channel.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
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 a pull request may close this issue.

1 participant