Add channel_id Filter to listpeerchannels#8766
Merged
cdecker merged 1 commit intoElementsProject:masterfrom Feb 24, 2026
Merged
Add channel_id Filter to listpeerchannels#8766cdecker merged 1 commit intoElementsProject:masterfrom
channel_id Filter to listpeerchannels#8766cdecker merged 1 commit intoElementsProject:masterfrom
Conversation
8688f02 to
d1e82f4
Compare
Member
|
ACK d1e82f4 |
cdecker
approved these changes
Dec 16, 2025
rustyrussell
approved these changes
Feb 23, 2026
Contributor
|
I'm assuming the second commit (which applies to a file which does not exist now) is unneccessary? |
Sometimes we don't know the short_channel_id yet (e.g the channel has not been broadcasted), but we still know the channel_id from the funding transaction. Add a channel_id filter to listpeerchannels and clarify that id, short_channel_id and channel_id are mutually exclusive. Changelog-Added: `listpeerchannels` now accepts a `channel_id` filter, for cases where the `short_channel_id` is not known yet. Signed-off-by: Peter Neuroth <[email protected]>
d1e82f4 to
10f95de
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Sometimes we don't know the short_channel_id yet (e.g the channel has not been broadcasted), but we still know the channel_id from the funding transaction. This PR adds a
channel_idfilter tolistpeerchannelsand clarifys thatid,short_channel_idandchannel_idare mutually exclusive.