Skip to content

Conversation

@nepet
Copy link
Collaborator

@nepet nepet commented Dec 7, 2025

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_id filter to listpeerchannels and clarifys that id, short_channel_id and channel_id are mutually exclusive.

@nepet nepet marked this pull request as ready for review December 7, 2025 16:03
@nepet nepet requested a review from cdecker as a code owner December 7, 2025 16:03
@nepet nepet force-pushed the 2548-filter-peerchannels-by-channel-id branch 3 times, most recently from 5268f24 to 8688f02 Compare December 8, 2025 04:49
nepet added 2 commits December 8, 2025 06:08
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 <pet.v.ne@gmail.com>
ListpeerchannelsRequest now has a filed `channel_id`.

Changelog-None

Signed-off-by: Peter Neuroth <pet.v.ne@gmail.com>
@nepet nepet force-pushed the 2548-filter-peerchannels-by-channel-id branch from 8688f02 to d1e82f4 Compare December 8, 2025 05:09
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.

1 participant