Skip to content

listchannels not seeing own unannounced channels? #8248

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
21M4TW opened this issue Apr 26, 2025 · 2 comments
Open

listchannels not seeing own unannounced channels? #8248

21M4TW opened this issue Apr 26, 2025 · 2 comments

Comments

@21M4TW
Copy link

21M4TW commented Apr 26, 2025

listchannels returns empty when I query any of my unannounced channels using their scid. How can I fix this?

@21M4TW 21M4TW changed the title peer_from_scid not seeing own unannounced channels? listchannels not seeing own unannounced channels? Apr 26, 2025
@vincenzopalazzo
Copy link
Collaborator

Looking at the changelog: - JSON-RPC: listchannels listing private channels: use listpeerchannels ([#6869])

The reason your unannounced channels don't show up when querying by SCID is that listchannels only looks at the gossip map, which only contains announced channels. Even if you know the SCID of an unannounced channel, it won't be found because it's not in the gossip map.

let me know if this help!

@21M4TW
Copy link
Author

21M4TW commented Apr 26, 2025

Looking at the changelog: - JSON-RPC: listchannels listing private channels: use listpeerchannels ([#6869])

The reason your unannounced channels don't show up when querying by SCID is that listchannels only looks at the gossip map, which only contains announced channels. Even if you know the SCID of an unannounced channel, it won't be found because it's not in the gossip map.

let me know if this help!

The documentation for listchannel says: "The listchannels RPC command returns data on channels that are known to the node." Some plugins such as rebalance seem to assume that, so they do not work with unannounced local channels. Unless I am mistaken I think even one of the pay commands had issues with this. Was the intent of listchannels to really exclude unannounced local channels as currently done, or was it to include all known channels as documented? I would tend to think that the local announced channels should be added to listchannels to be more usable without having to extract the information using listpeerchannels after a failed attempt with listchannels, but otherwise the documentation should be changed?

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

No branches or pull requests

2 participants