Skip to content

Expose server version on GetNodeInfo - #294

Merged
benthecarman merged 1 commit into
lightningdevkit:mainfrom
vincenzopalazzo:feat/server-version-get-node-info
Sep 22, 2026
Merged

benthecarman merged 1 commit into
lightningdevkit:mainfrom
vincenzopalazzo:feat/server-version-get-node-info

Conversation

@vincenzopalazzo

Copy link
Copy Markdown
Member

Summary

  • GetNodeInfo now returns version, the same <cargo version> (<git commit>) string ldk-server --version already prints.
  • Additive proto field (version = 16). Older clients ignore it. Empty only when talking to a server built before this field.
  • Reports the connected server build, not the CLI binary.

AI-assisted: implemented with goose.

Test plan

  • ldk-server --version still prints 0.1.0 (<hash>)
  • cargo test -p ldk-server-grpc --lib
  • cargo test --manifest-path e2e-tests/Cargo.toml --test e2e test_cli_get_node_info asserts version is present and matches the --version form
  • CI green

@ldk-reviews-bot

ldk-reviews-bot commented Sep 22, 2026 •

Copy link
Copy Markdown

👋 Thanks for assigning @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.

Comment thread docs/api-guide.md
Comment thread ldk-server-grpc/src/proto/api.proto Outdated
Comment thread ldk-server/src/main.rs
GetNodeInfo now returns the same `<cargo version> (<git commit>)` string
that `ldk-server --version` already prints, so a remote client can see
which server build it is talking to.

AI-assisted: implemented with goose.
@vincenzopalazzo
vincenzopalazzo force-pushed the feat/server-version-get-node-info branch from 5a90071 to 1660551 Compare September 22, 2026 03:23

@benthecarman benthecarman left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

thanks!

@benthecarman
benthecarman merged commit 4b6a841 into lightningdevkit:main Sep 22, 2026
11 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.

3 participants