Skip to content

Use LDK Server node features - #316

Merged
carlaKC merged 2 commits into
bitcoin-dev-project:mainfrom
enigbe:2026-08-use-ldk-server-node-features
Sep 15, 2026
Merged

carlaKC merged 2 commits into
bitcoin-dev-project:mainfrom
enigbe:2026-08-use-ldk-server-node-features

Conversation

@enigbe

@enigbe enigbe commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

What this PR does

LdkServerNode assumed every remote graph node supports keysend because LDK Server node announcement features were not previously exposed by its API. This allowed nodes that do not advertise keysend support to pass activity validation, resulting in avoidable payment failures.

Here we:

  • Update the ldk-server-client revision to include graph node announcement features.
  • Use remote nodes’ advertised features instead of assuming keysend support. Nodes without announcement information are treated as having no advertised features.

Closes #310

enigbe added 2 commits August 31, 2026 08:10
Update ldk-server-client to the revision containing support for
features on GraphNodeAnnouncement.

This enables SimLN to replace its hardcoded keysend assumption with
the features advertised by remote nodes.
Populate remote node features from GraphNodeAnnouncement instead of
assuming every graph node supports keysend.

Treat missing announcements as having no advertised features and add
tests covering keysend, multiple feature bits, and missing announcements.

@carlaKC carlaKC left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR!

@carlaKC
carlaKC merged commit 82da8d8 into bitcoin-dev-project:main Sep 15, 2026
2 checks passed
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.

Followup: Lookup real features for LDK-server

2 participants