Skip to content

Add features to graph node announcement #237

Open
enigbe wants to merge 1 commit into
lightningdevkit:mainfrom
enigbe:2026-06-add-features-to-graph-node-announcement
Open

Add features to graph node announcement #237
enigbe wants to merge 1 commit into
lightningdevkit:mainfrom
enigbe:2026-06-add-features-to-graph-node-announcement

Conversation

@enigbe

@enigbe enigbe commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

What this PR does

  1. Include the feature map from LDK's NodeAnnouncementInfo in GraphNodeAnnouncement. Features are part of the BOLT 7 node_announcement message, so exposing them makes the graph node announcement proto match the underlying gossip data more completely.

  2. Reuse the existing bit-keyed Feature representation and conversion helper, and cover the new field in the graph-get-node e2e test. This also supports callers such as sim-ln that need to inspect other nodes' advertised capabilities.

For context:
bitcoin-dev-project/sim-ln#307 https://github.com/bitcoin-dev-project/sim-ln/pull/307/changes#r3481510079

Include the feature map from LDK's NodeAnnouncementInfo in
GraphNodeAnnouncement. Features are part of the BOLT 7 node_announcement
payload, so exposing them makes the graph node announcement proto match the
underlying gossip data more completely.

Reuse the existing bit-keyed Feature representation and conversion helper, and
cover the new field in the graph-get-node e2e test. This also supports callers
such as sim-ln that need to inspect other nodes' advertised capabilities.

For context:
bitcoin-dev-project/sim-ln#307
https://github.com/bitcoin-dev-project/sim-ln/pull/307/changes#r3481510079
@ldk-reviews-bot

ldk-reviews-bot commented Jun 26, 2026

Copy link
Copy Markdown

I've assigned @benthecarman as a reviewer!
I'll wait for their review and will help manage the review process.
Once they submit their review, I'll check if a second reviewer would be helpful.

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.

2 participants